From f4f39d19898bb262db052dec9c09b1bac1cb6462 Mon Sep 17 00:00:00 2001 From: Yuxuan Shui Date: Thu, 14 Jul 2016 15:32:45 -0400 Subject: [PATCH] Avoid changing fade_callback when window is destroyed Fix assertion at src/compton.c:1261 --- src/compton.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/compton.c b/src/compton.c index 92935a3..df2b5ad 100644 --- a/src/compton.c +++ b/src/compton.c @@ -2277,6 +2277,8 @@ static void unmap_win(session_t *ps, win *w) { if (!w || IsUnmapped == w->a.map_state) return; + if (w->destroyed) return; + // One last synchronization if (w->paint.pixmap) xr_sync(ps, w->paint.pixmap, &w->fence);