From cd2dd3016e0834d1636aa96511608022a4cdbcd1 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Thu, 5 Jul 2012 19:58:54 +0100 Subject: [PATCH] sna: Fix clipping of glyphs-to-dst for partially obscurred windows Signed-off-by: Chris Wilson --- src/sna/sna_glyphs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/sna/sna_glyphs.c b/src/sna/sna_glyphs.c index 3d24ea4a..d4ace9df 100644 --- a/src/sna/sna_glyphs.c +++ b/src/sna/sna_glyphs.c @@ -472,7 +472,8 @@ glyphs_to_dst(struct sna *sna, list->xOff, list->yOff, dst->pDrawable->x, dst->pDrawable->y)); if (dst->pCompositeClip->extents.x2 - dst->pCompositeClip->extents.x1 < dst->pDrawable->width || - dst->pCompositeClip->extents.y2 - dst->pCompositeClip->extents.y1 < dst->pDrawable->height) { + dst->pCompositeClip->extents.y2 - dst->pCompositeClip->extents.y1 < dst->pDrawable->height || + dst->pCompositeClip->data) { rects = REGION_RECTS(dst->pCompositeClip); nrect = REGION_NUM_RECTS(dst->pCompositeClip); } else