1
0
Fork 0

wayland: Let the tablet tool handle the handle_event() return value

This was being ignored, and the events propagated always. This may lead
to confusion with Clutter about who handled what, since shockingly the
events may be delivered to clients.

Closes: https://gitlab.gnome.org/GNOME/mutter/-/issues/3317
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3625>
This commit is contained in:
Carlos Garnacho 2024-02-28 14:46:53 +01:00 committed by Marge Bot
parent 4c4c0b847d
commit c12991936e

View file

@ -435,8 +435,7 @@ meta_wayland_tablet_seat_handle_event (MetaWaylandTabletSeat *tablet_seat,
if (!tool)
return CLUTTER_EVENT_PROPAGATE;
meta_wayland_tablet_tool_handle_event (tool, event);
return CLUTTER_EVENT_PROPAGATE;
return meta_wayland_tablet_tool_handle_event (tool, event);
case CLUTTER_PAD_BUTTON_PRESS:
case CLUTTER_PAD_BUTTON_RELEASE:
case CLUTTER_PAD_RING: