mirror of
https://github.com/brl/mutter.git
synced 2025-02-16 13:24:09 +00:00
backends: Avoid usage of ClutterBackend/ClutterSeat in MetaInputDeviceNative
https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1403
This commit is contained in:
parent
abd858fb69
commit
af5f93377a
@ -62,15 +62,11 @@ meta_input_device_native_finalize (GObject *object)
|
|||||||
{
|
{
|
||||||
ClutterInputDevice *device = CLUTTER_INPUT_DEVICE (object);
|
ClutterInputDevice *device = CLUTTER_INPUT_DEVICE (object);
|
||||||
MetaInputDeviceNative *device_evdev = META_INPUT_DEVICE_NATIVE (object);
|
MetaInputDeviceNative *device_evdev = META_INPUT_DEVICE_NATIVE (object);
|
||||||
ClutterBackend *backend;
|
|
||||||
ClutterSeat *seat;
|
|
||||||
|
|
||||||
if (device_evdev->libinput_device)
|
if (device_evdev->libinput_device)
|
||||||
libinput_device_unref (device_evdev->libinput_device);
|
libinput_device_unref (device_evdev->libinput_device);
|
||||||
|
|
||||||
backend = clutter_get_default_backend ();
|
meta_seat_impl_release_device_id (device_evdev->seat_impl, device);
|
||||||
seat = clutter_backend_get_default_seat (backend);
|
|
||||||
meta_seat_impl_release_device_id (META_SEAT_NATIVE (seat)->impl, device);
|
|
||||||
|
|
||||||
clear_slow_keys (device_evdev);
|
clear_slow_keys (device_evdev);
|
||||||
stop_bounce_keys (device_evdev);
|
stop_bounce_keys (device_evdev);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user