From c213ab27ff79b9447b4f6cff6146295c720a1ff5 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Thu, 14 Feb 2008 23:39:46 -0500 Subject: [PATCH] Remove some spurious code If the window is fading out, then the new fade-in will execute the finish_unmap/destroy, and that will kill the pixmap already. --- xcompmgr.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/xcompmgr.c b/xcompmgr.c index 8f7a77b..9c996c8 100644 --- a/xcompmgr.c +++ b/xcompmgr.c @@ -1307,17 +1307,6 @@ map_win (Display *dpy, Window id, unsigned long sequence, Bool fade) #endif w->damaged = 0; -#if HAS_NAME_WINDOW_PIXMAP - /* If the window was previously mapped and its pixmap still exists, it - is out of date now, so force us to reacquire it. (If the window - re-maps before the unmap fade-out finished) */ - if (w->pixmap) - { - XFreePixmap (dpy, w->pixmap); - w->pixmap = None; - } -#endif - if (fade && winTypeFade[w->windowType]) set_fade (dpy, w, 0, get_opacity_percent (dpy, w), fade_in_step, 0, True, True); }