diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-07-05 19:58:54 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-07-05 19:58:54 +0100 |
commit | cd2dd3016e0834d1636aa96511608022a4cdbcd1 (patch) | |
tree | 2edd2b04f6dd929d627066c39bd6d3eb1b0955a0 | |
parent | 0f086acb259d7732560c5d0d642308de028a4445 (diff) |
sna: Fix clipping of glyphs-to-dst for partially obscurred windows
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | src/sna/sna_glyphs.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 |