WindowSwitcher: Clear indicator background

Since 0c64b60729 the window switcher
indicator shows artifacts as background.

Clear it before painting to make sure the background is properly
displayed.
This commit is contained in:
José Expósito 2021-11-27 19:45:41 +01:00 committed by Corentin Noël
parent 92d3a735e5
commit cce53acffe

View File

@ -146,12 +146,15 @@ namespace Gala {
indicator_canvas.scale_factor = scaling_factor;
indicator_canvas.draw.connect ((ctx, width, height) => {
ctx.save ();
ctx.set_operator (Cairo.Operator.CLEAR);
ctx.paint ();
ctx.clip ();
ctx.reset_clip ();
// draw rect
Clutter.cairo_set_source_color (ctx, accent_color);
Granite.Drawing.Utilities.cairo_rounded_rectangle (ctx, 0, 0, width, height, rect_radius);
ctx.set_operator (Cairo.Operator.SOURCE);
ctx.fill ();
ctx.restore ();