summaryrefslogtreecommitdiff
path: root/src/backends/meta-cursor-tracker-private.h
diff options
context:
space:
mode:
authorJasper St. Pierre <jstpierre@mecheye.net>2014-05-13 15:49:03 -0400
committerJasper St. Pierre <jstpierre@mecheye.net>2014-05-13 16:20:03 -0400
commitf57b0726a02ef48948c64e5c6bf0a477cc6420aa (patch)
treec34b6c71fd9f770c4cd0be56f350e50655338019 /src/backends/meta-cursor-tracker-private.h
parentda175bca52c049c4e078f77b344bd14f8e16db33 (diff)
downloadmutter-f57b0726a02ef48948c64e5c6bf0a477cc6420aa.tar.gz
cursor-tracker: Remove the grab cursor
We expect that meta_screen_set_cursor while grabbed will properly set the cursor on the root window. Make sure this works by simply always using the root cursor when we have an active grab.
Diffstat (limited to 'src/backends/meta-cursor-tracker-private.h')
-rw-r--r--src/backends/meta-cursor-tracker-private.h16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/backends/meta-cursor-tracker-private.h b/src/backends/meta-cursor-tracker-private.h
index 1ec4aff2d..20faa4111 100644
--- a/src/backends/meta-cursor-tracker-private.h
+++ b/src/backends/meta-cursor-tracker-private.h
@@ -37,22 +37,8 @@ struct _MetaCursorTracker {
gboolean is_showing;
- /* The cursor tracker stores the cursor for the current grab
- * operation, the cursor for the window with pointer focus, and
- * the cursor for the root window, which contains either the
- * default arrow cursor or the 'busy' hourglass if we're launching
- * an app.
- *
- * We choose the first one available -- if there's a grab cursor,
- * we choose that cursor, if there's window cursor, we choose that,
- * otherwise we choose the root cursor.
- *
- * The displayed_cursor contains the chosen cursor.
- */
MetaCursorReference *displayed_cursor;
- MetaCursorReference *grab_cursor;
-
/* Wayland clients can set a NULL buffer as their cursor
* explicitly, which means that we shouldn't display anything.
* So, we can't simply store a NULL in window_cursor to
@@ -74,8 +60,6 @@ struct _MetaCursorTrackerClass {
gboolean meta_cursor_tracker_handle_xevent (MetaCursorTracker *tracker,
XEvent *xevent);
-void meta_cursor_tracker_set_grab_cursor (MetaCursorTracker *tracker,
- MetaCursorReference *cursor);
void meta_cursor_tracker_set_window_cursor (MetaCursorTracker *tracker,
MetaCursorReference *cursor);
void meta_cursor_tracker_unset_window_cursor (MetaCursorTracker *tracker);