2007-10-31 19:28:56 +00:00
|
|
|
From: Adam Jackson <ajax@redhat.com>
|
|
|
|
Date: Sun, 28 Oct 2007 09:37:52 +0100
|
|
|
|
Subject: [PATCH] Fix exposure generation in Xnest
|
|
|
|
|
|
|
|
---
|
2007-04-09 23:09:52 +00:00
|
|
|
--- xorg-server-1.2.99.905/hw/xnest/Events.c.jx 2007-01-31 19:55:51.000000000 -0500
|
|
|
|
+++ xorg-server-1.2.99.905/hw/xnest/Events.c 2007-04-09 18:42:51.000000000 -0400
|
|
|
|
@@ -85,7 +85,7 @@
|
|
|
|
while (XCheckIfEvent(xnestDisplay, &X, xnestExposurePredicate, NULL)) {
|
|
|
|
pWin = xnestWindowPtr(X.xexpose.window);
|
|
|
|
|
|
|
|
- if (pWin) {
|
|
|
|
+ if (pWin && X.xexpose.width && X.xexpose.height) {
|
|
|
|
Box.x1 = pWin->drawable.x + wBorderWidth(pWin) + X.xexpose.x;
|
|
|
|
Box.y1 = pWin->drawable.y + wBorderWidth(pWin) + X.xexpose.y;
|
|
|
|
Box.x2 = Box.x1 + X.xexpose.width;
|
|
|
|
@@ -93,7 +93,7 @@
|
|
|
|
|
|
|
|
REGION_INIT(pWin->drawable.pScreen, &Rgn, &Box, 1);
|
|
|
|
|
|
|
|
- miWindowExposures(pWin, &Rgn, NullRegion);
|
|
|
|
+ miSendExposures(pWin, &Rgn, Box.x2, Box.y2);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|