1
0
Fork 0

stage-view: Add API to query cursor overlay inhibition

It will be used in a later commit to check if the stage-view maybe have
a software cursor on it.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3302>
This commit is contained in:
Robert Mader 2023-09-28 01:23:20 +02:00 committed by Marge Bot
parent a3b4d2dfc9
commit d71c0a94a1
2 changed files with 11 additions and 0 deletions

View file

@ -241,3 +241,12 @@ meta_stage_view_uninhibit_cursor_overlay (MetaStageView *view)
priv->inhibit_cursor_overlay_count--;
}
gboolean
meta_stage_view_is_cursor_overlay_inhibited (MetaStageView *view)
{
MetaStageViewPrivate *priv =
meta_stage_view_get_instance_private (view);
return priv->inhibit_cursor_overlay_count > 0;
}

View file

@ -28,3 +28,5 @@ G_DECLARE_DERIVABLE_TYPE (MetaStageView,
void meta_stage_view_inhibit_cursor_overlay (MetaStageView *view);
void meta_stage_view_uninhibit_cursor_overlay (MetaStageView *view);
gboolean meta_stage_view_is_cursor_overlay_inhibited (MetaStageView *view);