mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 19:00:08 +00:00
window: Use CAIRO_OPERATOR_SOURCE to clear to background
Some windows, like GtkWindow and some other apps, set a transparent
background. The guarantee for begin_paint_region is that there should
be a full clear to the specified background color, not a composite
against what was there before.
This fixes repaint artifacts in Wayland and Weston in a better way than
76922c169f
.
This commit is contained in:
parent
b0bd9d82a3
commit
3878519449
@ -2974,6 +2974,7 @@ gdk_window_clear_backing_region (GdkWindow *window)
|
||||
else
|
||||
cairo_set_source_rgb (cr, 0, 0, 0);
|
||||
|
||||
cairo_set_operator (cr, CAIRO_OPERATOR_SOURCE);
|
||||
gdk_cairo_region (cr, window->current_paint.region);
|
||||
cairo_fill (cr);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user