From 03bbb4c896ef3cd275312b413a2c85d9f499c032 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Wed, 26 May 2010 10:16:36 +0100 Subject: uxa: Perform manual damage for CompositeRects [xserver-1.8] The damage layer doesn't wrap CompositeRects, so we need to manually append the damaged region ourselves. This works for miCompsiteRects since that translates the call into multiple invocations of either PolyFillRectangle or Composite, which themselves cause damage. Fixes: Bug 28120 - Tint2's tooltip borders end up at 0,0 and do not disappear https://bugs.freedesktop.org/show_bug.cgi?id=28120 Signed-off-by: Chris Wilson --- uxa/uxa-render.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/uxa/uxa-render.c b/uxa/uxa-render.c index f1c34e7b..caa36ee1 100644 --- a/uxa/uxa-render.c +++ b/uxa/uxa-render.c @@ -963,6 +963,11 @@ uxa_solid_rects (CARD8 op, return; } + /* XXX xserver-1.8: CompositeRects is not tracked by Damage, so we must + * manually append the damaged regions ourselves. + */ + DamageRegionAppend(dst->pDrawable, ®ion); + pixman_region_translate(®ion, dst_x, dst_y); boxes = pixman_region_rectangles(®ion, &num_boxes); extents = pixman_region_extents (®ion); -- cgit v1.2.3