stage: Don't queue overlay damage on views with overlays inhibited

This saves some unnecessary redraws with virtual monitors with
metadata/hidden cursor modes.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/4066>
This commit is contained in:
Jonas Ådahl 2024-10-02 14:58:31 +02:00 committed by Marge Bot
parent 2fdba8cfce
commit 13e0b72026

View File

@ -379,6 +379,9 @@ queue_redraw_clutter_rect (MetaStage *stage,
CLUTTER_PAINT_FLAG_NO_CURSORS)
continue;
if (meta_stage_view_is_cursor_overlay_inhibited (META_STAGE_VIEW (view)))
return;
clutter_stage_view_get_layout (view, &view_layout);
if (mtk_rectangle_intersect (&clip, &view_layout, &view_clip))