Commit a30ca3e6 authored by Carlos Garnacho's avatar Carlos Garnacho
Browse files

core: Update cursor visibility on display events

https://bugzilla.gnome.org/show_bug.cgi?id=712775
parent 9e3bac02
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment