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