Commit b0ba325f authored by Giovanni Campagna's avatar Giovanni Campagna

MetaShapedTexture: fix critical warnings with fully obscured windows

If a window is fully obscured, it could have a negative paint volume
width/height. Normalize that to 0x0.
parent 6fbd2100
......@@ -514,6 +514,8 @@ meta_shaped_texture_get_paint_volume (ClutterActor *actor,
box.y1 = MAX (unobscured_bounds.y, box.y1);
box.y2 = MIN (unobscured_bounds.y + unobscured_bounds.height, box.y2);
box.x2 = MAX (box.x2, box.x1);
box.y2 = MAX (box.y2, box.y1);
clutter_paint_volume_union_box (volume, &box);
return TRUE;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment