diff options
author | Richard Grenville <[email protected]> | 2014-03-11 07:22:23 +0800 |
---|---|---|
committer | Richard Grenville <[email protected]> | 2014-03-11 07:22:23 +0800 |
commit | f01576deb4f747f72e85795dcca8c43b43d22e5e (patch) | |
tree | 8bb693dbf1b2b21052f9b59aa033b23e3259dd78 /compton.c | |
parent | ecd5b3393f0e9af9a230f06294cb6131cebf69d6 (diff) | |
download | tdebase-f01576deb4f747f72e85795dcca8c43b43d22e5e.tar.gz tdebase-f01576deb4f747f72e85795dcca8c43b43d22e5e.zip |
Misc: xr-glx-hybrid alias & minor fixes
- Add "xr-glx-hybrid" as an alias of "xr_glx_hybrid". (#163)
- Clear damage history in expose_root() and when root window size
changes. Unfortunately this doesn't fix #181.
Diffstat (limited to 'compton.c')
-rw-r--r-- | compton.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -2983,6 +2983,7 @@ configure_win(session_t *ps, XConfigureEvent *ce) { rebuild_screen_reg(ps); rebuild_shadow_exclude_reg(ps); + free_all_damage_last(ps); #ifdef CONFIG_VSYNC_OPENGL if (BKEND_GLX == ps->o.backend) @@ -3275,6 +3276,7 @@ error(Display __attribute__((unused)) *dpy, XErrorEvent *ev) { static void expose_root(session_t *ps, XRectangle *rects, int nrects) { + free_all_damage_last(ps); XserverRegion region = XFixesCreateRegion(ps->dpy, rects, nrects); add_damage(ps, region); } |