From c03e64ef1d427e927527a10c9b5348f9078c72f5 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Fri, 16 Aug 2024 16:20:10 +1000 Subject: [PATCH] wayland: Propagate a tablet's DEVICE_REMOVED to trigger the signals Clutter's "device-removed" signal is sent in clutter_seat_handle_event_post(). Our tablet code is set up to handle that signal to then notify wayland clients of removed tablet devices. However, returning CLUTTER_EVENT_STOP for a DEVICE_REMOVED event means we never get to the point where we send out the signals and thus never remove the tablets. Fixes: a37fd34bbb ("wayland: Make MetaWaylandSeat in charge of its own tablet seat") Closes: https://gitlab.gnome.org/GNOME/mutter/-/issues/3615 Part-of: --- src/wayland/meta-wayland-tablet-seat.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/wayland/meta-wayland-tablet-seat.c b/src/wayland/meta-wayland-tablet-seat.c index 3e270c5d6..92e10f447 100644 --- a/src/wayland/meta-wayland-tablet-seat.c +++ b/src/wayland/meta-wayland-tablet-seat.c @@ -448,6 +448,8 @@ meta_wayland_tablet_seat_handle_event (MetaWaylandTabletSeat *tablet_seat, return CLUTTER_EVENT_PROPAGATE; return meta_wayland_tablet_pad_handle_event (pad, event); + case CLUTTER_DEVICE_REMOVED: + return CLUTTER_EVENT_PROPAGATE; default: return CLUTTER_EVENT_STOP; }