From d478d8f143020fea1cf051b404f55e977ff0476e Mon Sep 17 00:00:00 2001 From: Rui Matos Date: Wed, 29 Apr 2015 16:20:38 +0200 Subject: [PATCH] core/events: Invalidate monitor cache when we're a wayland compositor When running as an X11 compositor we do this for every event we see on the X event stream. As a wayland compositor we don't go through that code path but since we see all events we can easily do this on motion events. In fact, we don't even need this caching when we're a wayland compositor since we can always find where the pointer is without a round trip but we're sharing the current monitor logic with the X path so let's keep it as is for now. https://bugzilla.gnome.org/show_bug.cgi?id=748478 --- src/core/events.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/events.c b/src/core/events.c index 263f76bce..5cd88b55a 100644 --- a/src/core/events.c +++ b/src/core/events.c @@ -201,6 +201,7 @@ meta_display_handle_event (MetaDisplay *display, { MetaCursorTracker *tracker = meta_cursor_tracker_get_for_screen (NULL); meta_cursor_tracker_update_position (tracker, event->motion.x, event->motion.y); + display->monitor_cache_invalidated = TRUE; } handle_idletime_for_event (event);