Avoid changing fade_callback when window is destroyed
Fix assertion at src/compton.c:1261
This commit is contained in:
parent
d458369f1d
commit
f4f39d1989
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue