[mutter] core: Update cursor visibility on display events
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] core: Update cursor visibility on display events
- Date: Fri, 13 Mar 2015 20:06:37 +0000 (UTC)
commit a30ca3e62f2b4e3b8f018790792f1b2b6104229d
Author: Carlos Garnacho <carlosg gnome org>
Date: Wed Feb 11 15:03:25 2015 +0100
core: Update cursor visibility on display events
https://bugzilla.gnome.org/show_bug.cgi?id=712775
src/core/events.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/src/core/events.c b/src/core/events.c
index 8b09ec8..43efe1d 100644
--- a/src/core/events.c
+++ b/src/core/events.c
@@ -161,6 +161,7 @@ meta_display_handle_event (MetaDisplay *display,
G_GNUC_UNUSED gboolean bypass_wayland = FALSE;
MetaGestureTracker *tracker;
ClutterEventSequence *sequence;
+ ClutterInputDevice *source;
sequence = clutter_event_get_event_sequence (event);
@@ -179,6 +180,14 @@ meta_display_handle_event (MetaDisplay *display,
}
#endif
+ source = clutter_event_get_source_device (event);
+
+ if (source)
+ {
+ meta_backend_update_last_device (meta_get_backend (),
+ clutter_input_device_get_device_id (source));
+ }
+
if (meta_is_wayland_compositor () && event->type == CLUTTER_MOTION)
{
MetaCursorTracker *tracker = meta_cursor_tracker_get_for_screen (NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]