Commit faa7b2d4 authored by verdre's avatar verdre Committed by Carlos Garnacho

cursor-tracker: Add API to get whether the pointer is visible

Allow checking whether the pointer is visible without accessing the
trackers internal is_showing property. While we don't need this just yet
for reading the visibility inside meta-wayland-pointer, it's useful when
implementing the logic to remove Clutter's focus when the cursor goes
hidden later.

parent a95644db
......@@ -418,6 +418,12 @@ meta_cursor_tracker_get_pointer (MetaCursorTracker *tracker,
get_pointer_position_gdk (x, y, (int*)mods);
meta_cursor_tracker_get_pointer_visible (MetaCursorTracker *tracker)
return tracker->is_showing;
meta_cursor_tracker_set_pointer_visible (MetaCursorTracker *tracker,
gboolean visible)
......@@ -55,6 +55,9 @@ void meta_cursor_tracker_get_pointer (MetaCursorTracker *tracker,
int *y,
ClutterModifierType *mods);
gboolean meta_cursor_tracker_get_pointer_visible (MetaCursorTracker *tracker);
void meta_cursor_tracker_set_pointer_visible (MetaCursorTracker *tracker,
gboolean visible);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment