From ed8275ec33e587c0adac0f9206cd67e1b3034615 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Thu, 13 Oct 2022 11:56:06 +0200 Subject: [PATCH] wayland/seat: Don't double-disable input classes We'd set the capabilities to 'none', meaning all previously enabled device classes would be disabled. That means we shouldn't re-disable them directly after. This ensures '..disable()' is only called once for every '..enable()'. Part-of: --- src/wayland/meta-wayland-seat.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/wayland/meta-wayland-seat.c b/src/wayland/meta-wayland-seat.c index 80325ece1..4e0976920 100644 --- a/src/wayland/meta-wayland-seat.c +++ b/src/wayland/meta-wayland-seat.c @@ -255,11 +255,8 @@ meta_wayland_seat_free (MetaWaylandSeat *seat) g_signal_handlers_disconnect_by_data (clutter_seat, seat); meta_wayland_seat_set_capabilities (seat, 0); - meta_wayland_pointer_disable (seat->pointer); g_object_unref (seat->pointer); - meta_wayland_keyboard_disable (seat->keyboard); g_object_unref (seat->keyboard); - meta_wayland_touch_disable (seat->touch); g_object_unref (seat->touch); meta_wayland_text_input_destroy (seat->text_input);