Configure damage must include shadow region, not just window. Also, leaking
region on each configure.
This commit is contained in:
parent
b4fc0433c5
commit
febeaf7ad1
|
@ -1,3 +1,9 @@
|
||||||
|
2003-11-09 Keith Packard <keithp@keithp.com>
|
||||||
|
|
||||||
|
* xcompmgr.c: (configure_win):
|
||||||
|
Configure damage must include shadow region, not just window.
|
||||||
|
Also, leaking region on each configure.
|
||||||
|
|
||||||
2003-11-09 Keith Packard <keithp@keithp.com>
|
2003-11-09 Keith Packard <keithp@keithp.com>
|
||||||
|
|
||||||
* xcompmgr.c: (main):
|
* xcompmgr.c: (main):
|
||||||
|
|
|
@ -666,8 +666,9 @@ configure_win (Display *dpy, XConfigureEvent *ce)
|
||||||
}
|
}
|
||||||
if (damage)
|
if (damage)
|
||||||
{
|
{
|
||||||
XserverRegion border = border_size (dpy, w);
|
XserverRegion extents = win_extents (dpy, w);
|
||||||
XFixesUnionRegion (dpy, damage, damage, 0, 0, border, 0, 0);
|
XFixesUnionRegion (dpy, damage, damage, 0, 0, extents, 0, 0);
|
||||||
|
XFixesDestroyRegion (dpy, extents);
|
||||||
add_damage (dpy, damage);
|
add_damage (dpy, damage);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue