1
0
Fork 0

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: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3955>
(cherry picked from commit c03e64ef1d)
This commit is contained in:
Peter Hutterer 2024-08-16 16:20:10 +10:00 committed by Jonas Ådahl
parent 04b2b87959
commit 3a580e4bce

View file

@ -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;
}