mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 15:40:41 -05:00
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
This commit is contained in:
parent
6891ce95dc
commit
8e74880b55
@ -695,7 +695,11 @@ meta_window_actor_get_paint_volume (ClutterActor *actor,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (priv->unobscured_region)
|
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.x = bounds.x;
|
||||||
origin.y = bounds.y;
|
origin.y = bounds.y;
|
||||||
|
Loading…
Reference in New Issue
Block a user