[mutter/wip/carlosg/input-thread: 87/97] backends: Avoid usage of ClutterBackend/ClutterSeat in MetaInputDeviceNative
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/carlosg/input-thread: 87/97] backends: Avoid usage of ClutterBackend/ClutterSeat in MetaInputDeviceNative
- Date: Wed, 28 Oct 2020 19:37:31 +0000 (UTC)
commit 05c7baa1c1282f9dece5cd57411e1c004c6ec939
Author: Carlos Garnacho <carlosg gnome org>
Date: Tue Aug 11 18:48:55 2020 +0200
backends: Avoid usage of ClutterBackend/ClutterSeat in MetaInputDeviceNative
https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1403
src/backends/native/meta-input-device-native.c | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
---
diff --git a/src/backends/native/meta-input-device-native.c b/src/backends/native/meta-input-device-native.c
index 79e39298f8..70d5012037 100644
--- a/src/backends/native/meta-input-device-native.c
+++ b/src/backends/native/meta-input-device-native.c
@@ -62,15 +62,11 @@ meta_input_device_native_finalize (GObject *object)
{
ClutterInputDevice *device = CLUTTER_INPUT_DEVICE (object);
MetaInputDeviceNative *device_evdev = META_INPUT_DEVICE_NATIVE (object);
- ClutterBackend *backend;
- ClutterSeat *seat;
if (device_evdev->libinput_device)
libinput_device_unref (device_evdev->libinput_device);
- backend = clutter_get_default_backend ();
- seat = clutter_backend_get_default_seat (backend);
- meta_seat_impl_release_device_id (META_SEAT_NATIVE (seat)->impl, device);
+ meta_seat_impl_release_device_id (device_evdev->seat_impl, device);
clear_slow_keys (device_evdev);
stop_bounce_keys (device_evdev);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]