mirror of
https://github.com/brl/mutter.git
synced 2025-02-23 00:14:09 +00:00

Since a NULL redraw_clip means that a full view redraw should be done and an empty redraw clip may never be set (see the width/height checks in clutter_stage_view_add_redraw_clip()), the fb_clip_region should always be set to a reasonable region that's either the whole view or individual regions inside the view. So make sure that's actually the case by warning and that the fb_clip_region isn't empty, which allows dropping another few lines of code. https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1113