mirror of
https://github.com/brl/mutter.git
synced 2024-11-23 00:20:42 -05:00
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:
parent
a3b4d2dfc9
commit
d71c0a94a1
@ -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;
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user