From: Dana Jansens Date: Wed, 20 Feb 2008 06:20:40 +0000 (-0500) Subject: More fixing for fade-outs. X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=c69769f0ae82c5fe47e78059f37db91e2c0c43a6;p=dana%2Fxcompmgr.git More fixing for fade-outs. When a window is destroyed, always override the fade out so that the finish_destroy_win function can be called. When a ConfigureNotify event is processed on an unmapped window, don't set the clipChanged = True. Fixes unmap->configure causing flashing during the fade-out. --- diff --git a/xcompmgr.c b/xcompmgr.c index 1a942a1..91ee807 100644 --- a/xcompmgr.c +++ b/xcompmgr.c @@ -1669,10 +1669,12 @@ configure_win (Display *dpy, XConfigureEvent *ce) XFixesDestroyRegion (dpy, extents); add_damage (dpy, damage); } + + clipChanged = True; } + w->a.override_redirect = ce->override_redirect; restack_win (dpy, w, ce->above); - clipChanged = True; } static void @@ -1743,7 +1745,7 @@ destroy_win (Display *dpy, Window id, Bool fade) #if HAS_NAME_WINDOW_PIXMAP if (w && w->pixmap && fade && winTypeFade[w->windowType]) set_fade (dpy, w, w->opacity*1.0/OPAQUE, 0.0, fade_out_step, - destroy_callback, False, (w->a.map_state != IsUnmapped)); + destroy_callback, False, True); else #endif {