lookingGlass: Avoid a little bit of RedBorderEffect overdraw

The left edge of the box was redrawing the bottom left corner when
the bottom edge had already done so.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1876>
This commit is contained in:
Daniel van Vugt 2021-06-09 14:21:21 +08:00 committed by Marge Bot
parent d8802aafc4
commit 1879ca741e

View File

@ -521,7 +521,7 @@ class RedBorderEffect extends Clutter.Effect {
pipelineNode.add_rectangle(box);
box.set_origin(0, width);
box.set_size(width, alloc.get_height() - width);
box.set_size(width, alloc.get_height() - width * 2);
pipelineNode.add_rectangle(box);
}
});