From febeaf7ad1f81ac6b77fa35a5f21e7819c69ebb7 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Mon, 10 Nov 2003 04:46:24 +0000 Subject: [PATCH] Configure damage must include shadow region, not just window. Also, leaking region on each configure. --- ChangeLog | 6 ++++++ xcompmgr.c | 5 +++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 946788a..45faea4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2003-11-09 Keith Packard + + * xcompmgr.c: (configure_win): + Configure damage must include shadow region, not just window. + Also, leaking region on each configure. + 2003-11-09 Keith Packard * xcompmgr.c: (main): diff --git a/xcompmgr.c b/xcompmgr.c index 02a634d..16260b4 100644 --- a/xcompmgr.c +++ b/xcompmgr.c @@ -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); } }