core: Drop handling of updates to the last used device

This is now done in the backend for the Wayland case, so we can
drop this update here.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/285>
This commit is contained in:
Carlos Garnacho 2022-01-13 14:04:41 +01:00 committed by Marge Bot
parent 9708d04f7e
commit 4e85e0e1b3

View File

@ -309,15 +309,7 @@ meta_display_handle_event (MetaDisplay *display,
if (event->type != CLUTTER_DEVICE_ADDED && if (event->type != CLUTTER_DEVICE_ADDED &&
event->type != CLUTTER_DEVICE_REMOVED) event->type != CLUTTER_DEVICE_REMOVED)
{ handle_idletime_for_event (event);
ClutterInputDevice *source;
handle_idletime_for_event (event);
source = clutter_event_get_source_device (event);
if (source)
meta_backend_update_last_device (backend, source);
}
#ifdef HAVE_WAYLAND #ifdef HAVE_WAYLAND
if (meta_is_wayland_compositor () && event->type == CLUTTER_MOTION) if (meta_is_wayland_compositor () && event->type == CLUTTER_MOTION)