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:
parent
2fdba8cfce
commit
13e0b72026
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user