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:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user