summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasper St. Pierre <jstpierre@mecheye.net>2013-12-06 11:44:42 -0500
committerAdel Gadllah <adel.gadllah@gmail.com>2014-01-31 15:27:04 +0100
commitfd263d84571958591e0b69f43a1c8c11be85b4b5 (patch)
tree4a6f752770d19b88169c8b3b667422bff7254159
parent47758f0f5f613cec0094e8cbc5274287943dbe09 (diff)
window-actor: Fix optimization in get_paint_volume
We need to clip the paint volume to the unobscured region, not the other way around... https://bugzilla.gnome.org/show_bug.cgi?id=720630
-rw-r--r--src/compositor/meta-window-actor.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/compositor/meta-window-actor.c b/src/compositor/meta-window-actor.c
index 77a0f258..b4102186 100644
--- a/src/compositor/meta-window-actor.c
+++ b/src/compositor/meta-window-actor.c
@@ -735,7 +735,11 @@ meta_window_actor_get_paint_volume (ClutterActor *actor,
}
if (priv->unobscured_region)
- cairo_region_intersect_rectangle (priv->unobscured_region, &bounds);
+ {
+ cairo_rectangle_int_t unobscured_bounds;
+ cairo_region_get_extents (priv->unobscured_region, &unobscured_bounds);
+ gdk_rectangle_intersect (&bounds, &unobscured_bounds, &bounds);
+ }
origin.x = bounds.x;
origin.y = bounds.y;