mirror of
https://github.com/brl/mutter.git
synced 2024-11-24 17:10:40 -05:00
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:
parent
6014d31dea
commit
2d67b01c3a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user