window-actor: Use more conservative paint volume

We know which part of the window is not obscured, so take advantaged of that
to limit the size of the paint volume that we report.
This commit is contained in:
Adel Gadllah 2013-09-04 19:43:08 +02:00
parent 6014d31dea
commit 2d67b01c3a

View File

@ -767,6 +767,9 @@ meta_window_actor_get_paint_volume (ClutterActor *actor,
gdk_rectangle_union (&bounds, &shadow_bounds, &bounds);
}
if (priv->unobscured_region)
cairo_region_intersect_rectangle (priv->unobscured_region, &bounds);
origin.x = bounds.x;
origin.y = bounds.y;
origin.z = 0.0f;