Skip to content

Commit

Permalink
Redraw tooltip to avoid corner glitches (#1760)
Browse files Browse the repository at this point in the history
Co-authored-by: Danielle Foré <[email protected]>
  • Loading branch information
lenemter and danirabbit authored Oct 27, 2023
1 parent 433c4e9 commit b8bea1f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Widgets/Tooltip.vala
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,13 @@ public class Gala.Tooltip : Clutter.Actor {
}

ctx.save ();
ctx.set_operator (Cairo.Operator.CLEAR);
ctx.paint ();
ctx.clip ();
ctx.reset_clip ();
ctx.set_operator (Cairo.Operator.OVER);

style_context.render_background (ctx, 0, 0, width, height);
style_context.render_frame (ctx, 0, 0, width, height);

ctx.restore ();

Expand Down

0 comments on commit b8bea1f

Please sign in to comment.