diff --git a/src/backends/meta-cursor-tracker.c b/src/backends/meta-cursor-tracker.c index bc8adcee5..605a86190 100644 --- a/src/backends/meta-cursor-tracker.c +++ b/src/backends/meta-cursor-tracker.c @@ -109,9 +109,11 @@ update_displayed_cursor (MetaCursorTracker *tracker) { MetaCursorTrackerPrivate *priv = meta_cursor_tracker_get_instance_private (tracker); + MetaContext *context = meta_backend_get_context (priv->backend); + MetaDisplay *display = meta_context_get_display (context); MetaCursorSprite *cursor = NULL; - if (priv->has_window_cursor) + if (display && !meta_display_is_grabbed (display) && priv->has_window_cursor) cursor = priv->window_cursor; else cursor = priv->root_cursor;