From 9ddd01f11cfc79a77051b50f4d682e88ea54eab3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20L=C3=BCbking?= Date: Sat, 19 Feb 2005 22:18:52 +0000 Subject: [PATCH] fixes a previously created bug (active windows do not receive callbacks after fade) svn path=/trunk/kdebase/kwin/; revision=391040 --- kompmgr/kompmgr.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/kompmgr/kompmgr.c b/kompmgr/kompmgr.c index affc2704c9..7cbfbb405c 100644 --- a/kompmgr/kompmgr.c +++ b/kompmgr/kompmgr.c @@ -275,7 +275,9 @@ dequeue_fade (Display *dpy, fade *f) { *prev = f->next; if (f->callback) + { (*f->callback) (dpy, f->w, f->gone); + } free (f); break; } @@ -418,10 +420,10 @@ run_fades (Display *dpy) w->shadow = None; w->extents = win_extents(dpy, w); } + determine_mode (dpy, w); /* Must do this last as it might destroy f->w in callbacks */ if (need_dequeue) dequeue_fade (dpy, f); - determine_mode (dpy, w); } fade_time = now + fade_delta; } @@ -2751,7 +2753,7 @@ main (int argc, char **argv) break; /*skip if opacity does not change*/ if (fadeTrans) { - set_fade (dpy, w, w->opacity*1.0/OPAQUE, (tmp*1.0)/OPAQUE, fade_out_step, 0, False, False, True, False); + set_fade (dpy, w, w->opacity*1.0/OPAQUE, (tmp*1.0)/OPAQUE, fade_out_step, 0, False, True, True, False); break; } else