fixes invisible remapped windows (especially on long fade offs)
svn path=/trunk/kdebase/kwin/; revision=393125
This commit is contained in:
parent
c8a3be9b0c
commit
28d89857a1
1 changed files with 4 additions and 2 deletions
|
@ -1361,6 +1361,9 @@ repair_win (Display *dpy, win *w)
|
||||||
w->damaged = 1;
|
w->damaged = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static unsigned int
|
||||||
|
get_opacity_prop(Display *dpy, win *w, unsigned int def);
|
||||||
|
|
||||||
static void
|
static void
|
||||||
map_win (Display *dpy, Window id, unsigned long sequence, Bool fade)
|
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)
|
if (!w)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
w->a.map_state = IsViewable;
|
w->a.map_state = IsViewable;
|
||||||
|
|
||||||
/* This needs to be here or else we lose transparency messages */
|
/* 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;
|
w->damaged = 0;
|
||||||
|
|
||||||
if (fade && fadeWindows)
|
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
|
static void
|
||||||
|
|
Loading…
Reference in a new issue