Commit 38785194 authored by Jasper St. Pierre's avatar Jasper St. Pierre

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
parent b0bd9d82
......@@ -2974,6 +2974,7 @@ gdk_window_clear_backing_region (GdkWindow *window)
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);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment