mirror of
https://github.com/brl/mutter.git
synced 2025-01-22 09:29:25 +00:00
92710d8f89
Fix a regression that got introduced with c483b52d240136cf49b358cde2c0d2c0ed237e51 where we started passing the redraw_clip to paint_stage() instead of creating a temporary view_region for unclipped redraws: In case we detect an invalid buffer age, we fall back to doing an unclipped redraw after we passed the first check setting up may_use_clipped_redraw. That means we didn't reset the redraw_clip to the view_rect, and we're now going to redraw the stage using the original redraw clip even though we're swapping the full framebuffer without damage. To fix that, check for the buffer age before setting up the fb_clip_region and the redraw_clip and set may_use_clipped_redraw to FALSE if the buffer age is invalid, too. This ensures the redraw_clip is always going to be correctly set to the view rect when we want to force a full redraw. Fixes https://gitlab.gnome.org/GNOME/mutter/issues/1128