Avoid changing fade_callback when window is destroyed

Fix assertion at src/compton.c:1261
This commit is contained in:
Yuxuan Shui 2016-07-14 15:32:45 -04:00
parent d458369f1d
commit f4f39d1989
1 changed files with 2 additions and 0 deletions

View File

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