summaryrefslogtreecommitdiff
path: root/mi
diff options
context:
space:
mode:
authorSøren Sandmann Pedersen <sandmann@daimi.au.dk>2005-01-14 22:07:59 +0000
committerSøren Sandmann Pedersen <sandmann@daimi.au.dk>2005-01-14 22:07:59 +0000
commit24cdd188dc3c10b56d6a7b46dafefb16c6d13efc (patch)
tree8a74c3944d1f3f38d4884cc0303c8ef5adee20a7 /mi
parent7db2e666e2dc9a1dba468e35e9d382e76ed8be54 (diff)
Fri Jan 14 17:03:40 2005 Søren Sandmann <sandmann@redhat.com>
Fix from Keith Packard for bitgravity bugs in the Composite extension, reported by Amir Bukhari.
Diffstat (limited to 'mi')
-rw-r--r--mi/miwindow.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/mi/miwindow.c b/mi/miwindow.c
index 4eac9226c..545fb3307 100644
--- a/mi/miwindow.c
+++ b/mi/miwindow.c
@@ -883,8 +883,14 @@ miSlideAndSizeWindow(pWin, x, y, w, h, pSib)
/* and move those bits */
- if (oldpt.x != x || oldpt.y != y)
+ if (oldpt.x != x || oldpt.y != y
+#ifdef COMPOSITE
+ || pWin->redirectDraw
+#endif
+ )
+ {
(*pWin->drawable.pScreen->CopyWindow)(pWin, oldpt, gravitate[g]);
+ }
/* remove any overwritten bits from the remaining useful bits */