1
0
Fork 0
mirror of https://github.com/yshui/picom.git synced 2024-11-11 13:51:02 -05:00

Configure damage must include shadow region, not just window. Also, leaking

region on each configure.
This commit is contained in:
Keith Packard 2003-11-10 04:46:24 +00:00
parent b4fc0433c5
commit febeaf7ad1
2 changed files with 9 additions and 2 deletions

View file

@ -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>
* xcompmgr.c: (main):

View file

@ -666,8 +666,9 @@ configure_win (Display *dpy, XConfigureEvent *ce)
}
if (damage)
{
XserverRegion border = border_size (dpy, w);
XFixesUnionRegion (dpy, damage, damage, 0, 0, border, 0, 0);
XserverRegion extents = win_extents (dpy, w);
XFixesUnionRegion (dpy, damage, damage, 0, 0, extents, 0, 0);
XFixesDestroyRegion (dpy, extents);
add_damage (dpy, damage);
}
}