mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 19:42:05 +00:00
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:
parent
8dea73ce6c
commit
7cc6457b9f
@ -163,6 +163,7 @@ maybe_unfreeze_pointer_events (MetaBackend *backend,
|
||||
const ClutterEvent *event,
|
||||
EventsUnfreezeMethod unfreeze_method)
|
||||
{
|
||||
ClutterInputDevice *device;
|
||||
Display *xdisplay;
|
||||
int event_mode;
|
||||
int device_id;
|
||||
@ -173,7 +174,8 @@ maybe_unfreeze_pointer_events (MetaBackend *backend,
|
||||
if (!META_IS_BACKEND_X11 (backend))
|
||||
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)
|
||||
{
|
||||
case EVENTS_UNFREEZE_SYNC:
|
||||
|
Loading…
Reference in New Issue
Block a user