summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2003-11-10 04:46:24 +0000
committerKeith Packard <keithp@keithp.com>2003-11-10 04:46:24 +0000
commitfebeaf7ad1f81ac6b77fa35a5f21e7819c69ebb7 (patch)
tree2a16a0d8fc6aef56bbd299a8f03f160b250dbe72
parentb4fc0433c5d358595ed87a7a04183b7ec37e070c (diff)
Configure damage must include shadow region, not just window. Also, leaking
region on each configure.
-rw-r--r--ChangeLog6
-rw-r--r--xcompmgr.c5
2 files changed, 9 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 946788a..45faea4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
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):
oops. Left in an XSynchronize call.
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);
}
}