[PATCH 2/2] mi: clip exposures to pGC->clientClip.

Maarten Maathuis madman2003 at gmail.com
Fri Feb 6 12:16:14 PST 2009


---
 mi/miexpose.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/mi/miexpose.c b/mi/miexpose.c
index d56d187..082f906 100644
--- a/mi/miexpose.c
+++ b/mi/miexpose.c
@@ -254,6 +254,10 @@ miHandleExposures(DrawablePtr pSrcDrawable, DrawablePtr pDstDrawable,
     /* intersect with visible areas of dest */
     REGION_INTERSECT(pscr, &rgnExposed, &rgnExposed, prgnDstClip);
 
+    /* intersect with client clip region. */
+    if (pGC->clientClipType == CT_REGION)
+	REGION_INTERSECT(pscr, &rgnExposed, &rgnExposed, pGC->clientClip);
+
     /*
      * If we have LOTS of rectangles, we decide to take the extents
      * and force an exposure on that.  This should require much less
-- 
1.6.1.1



More information about the xorg-devel mailing list