core: Move away from clutter_event_get_device_id()

Fetch the device, and the ID from there.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1569>
This commit is contained in:
Carlos Garnacho 2020-11-17 14:49:31 +01:00 committed by Marge Bot
parent 8dea73ce6c
commit 7cc6457b9f

View File

@ -163,6 +163,7 @@ maybe_unfreeze_pointer_events (MetaBackend *backend,
const ClutterEvent *event, const ClutterEvent *event,
EventsUnfreezeMethod unfreeze_method) EventsUnfreezeMethod unfreeze_method)
{ {
ClutterInputDevice *device;
Display *xdisplay; Display *xdisplay;
int event_mode; int event_mode;
int device_id; int device_id;
@ -173,7 +174,8 @@ maybe_unfreeze_pointer_events (MetaBackend *backend,
if (!META_IS_BACKEND_X11 (backend)) if (!META_IS_BACKEND_X11 (backend))
return; return;
device_id = clutter_event_get_device_id (event); device = clutter_event_get_device (event);
device_id = clutter_input_device_get_device_id (device);
switch (unfreeze_method) switch (unfreeze_method)
{ {
case EVENTS_UNFREEZE_SYNC: case EVENTS_UNFREEZE_SYNC: