diff options
author | Rui Matos <tiagomatos@gmail.com> | 2015-04-29 16:20:38 +0200 |
---|---|---|
committer | Rui Matos <tiagomatos@gmail.com> | 2015-04-30 14:01:23 +0200 |
commit | d478d8f143020fea1cf051b404f55e977ff0476e (patch) | |
tree | 3bebb7ad6ade04b819166a505d318a8e04a538cd | |
parent | 7eca43cec93b37a3db3a2d66aff86569e0f60313 (diff) |
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
-rw-r--r-- | src/core/events.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/events.c b/src/core/events.c index 263f76bc..5cd88b55 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); |