backends: Make meta_backend_update_last_device() take a clutter device

Instead of a pretty x11 specific device ID. This also updates the argument
of the ::last-device-changed signal to be a ClutterInputDevice.

https://gitlab.gnome.org/GNOME/mutter/merge_requests/852
This commit is contained in:
Carlos Garnacho
2019-10-04 18:23:49 +02:00
parent 4761c4ee1c
commit f55d4f33af
4 changed files with 22 additions and 28 deletions

View File

@ -273,10 +273,7 @@ meta_display_handle_event (MetaDisplay *display,
source = clutter_event_get_source_device (event);
if (source)
{
meta_backend_update_last_device (backend,
clutter_input_device_get_device_id (source));
}
meta_backend_update_last_device (backend, source);
#ifdef HAVE_WAYLAND
if (meta_is_wayland_compositor () && event->type == CLUTTER_MOTION)