mirror of
https://github.com/elementary/gala.git
synced 2024-11-27 15:45:31 +03:00
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:
parent
92d3a735e5
commit
cce53acffe
@ -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 ();
|
||||
|
Loading…
Reference in New Issue
Block a user