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);