Wayland: Background does not get repainted when moving xeyes around
Continuation of discussion in !1036 (comment 703844):
When moving xeyes
around over the background, the transparent parts do not get properly repainted (on Wayland, did not test on X11).
One way to work around that is to force the else
path in https://gitlab.gnome.org/GNOME/mutter/blob/06dae3a8cc05f2dee34183bc045411d88633a00b/src/compositor/meta-background-actor.c#L560-577:
n_rects = cairo_region_num_rectangles (region);
if (n_rects <= MAX_RECTS)
{
for (i = 0; i < n_rects; i++)
{
cairo_rectangle_int_t rect;
cairo_region_get_rectangle (region, i, &rect);
paint_clipped_rectangle (fb, self->pipeline, &rect,
&self->texture_area);
}
}
else
{
cairo_rectangle_int_t rect;
cairo_region_get_extents (region, &rect);
paint_clipped_rectangle (fb, self->pipeline, &rect,
&self->texture_area);
}
cc: @carlosg