From 28d89857a10b269f66b0f89fd1eeaccc59ce0209 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20L=C3=BCbking?= Date: Fri, 25 Feb 2005 23:42:53 +0000 Subject: [PATCH] fixes invisible remapped windows (especially on long fade offs) svn path=/trunk/kdebase/kwin/; revision=393125 --- kompmgr/kompmgr.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/kompmgr/kompmgr.c b/kompmgr/kompmgr.c index dbac938dc2..4341236446 100644 --- a/kompmgr/kompmgr.c +++ b/kompmgr/kompmgr.c @@ -1361,6 +1361,9 @@ repair_win (Display *dpy, win *w) w->damaged = 1; } +static unsigned int +get_opacity_prop(Display *dpy, win *w, unsigned int def); + static void map_win (Display *dpy, Window id, unsigned long sequence, Bool fade) { @@ -1369,7 +1372,6 @@ map_win (Display *dpy, Window id, unsigned long sequence, Bool fade) if (!w) return; - w->a.map_state = IsViewable; /* This needs to be here or else we lose transparency messages */ @@ -1382,7 +1384,7 @@ map_win (Display *dpy, Window id, unsigned long sequence, Bool fade) w->damaged = 0; if (fade && fadeWindows) - set_fade (dpy, w, 0, get_opacity_percent (dpy, w, 1.0), fade_in_step, 0, False, True, True, True); + set_fade (dpy, w, 0, get_opacity_prop(dpy, w, OPAQUE)*1.0/OPAQUE, fade_in_step, 0, False, True, True, True); } static void