From c69769f0ae82c5fe47e78059f37db91e2c0c43a6 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Wed, 20 Feb 2008 01:20:40 -0500 Subject: [PATCH] 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. --- xcompmgr.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/xcompmgr.c b/xcompmgr.c index 1a942a12..91ee8073 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 {