backends/native: Set the tool for relative events

Otherwise a tablet in relative mode will never have a tool set and
nothing happens on motion events - meta_wayland_tablet_seat_update()
simply exits early for tablet proximity, button or motion events.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3410>
This commit is contained in:
Peter Hutterer 2023-11-20 14:31:37 +10:00 committed by Marge Bot
parent baafec089a
commit 9e781545aa

View File

@ -627,7 +627,7 @@ meta_seat_impl_notify_relative_motion_in_impl (MetaSeatImpl *seat_impl,
clutter_event_motion_new (CLUTTER_EVENT_FLAG_RELATIVE_MOTION, clutter_event_motion_new (CLUTTER_EVENT_FLAG_RELATIVE_MOTION,
time_us, time_us,
input_device, input_device,
NULL, device_native->last_tool,
modifiers, modifiers,
GRAPHENE_POINT_INIT (x, y), GRAPHENE_POINT_INIT (x, y),
GRAPHENE_POINT_INIT (dx, dy), GRAPHENE_POINT_INIT (dx, dy),