From 9e781545aa1fe7fb18d6b1dd1279edb583a65d19 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Mon, 20 Nov 2023 14:31:37 +1000 Subject: [PATCH] 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: --- src/backends/native/meta-seat-impl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backends/native/meta-seat-impl.c b/src/backends/native/meta-seat-impl.c index 96ca4c535..cfecc5957 100644 --- a/src/backends/native/meta-seat-impl.c +++ b/src/backends/native/meta-seat-impl.c @@ -627,7 +627,7 @@ meta_seat_impl_notify_relative_motion_in_impl (MetaSeatImpl *seat_impl, clutter_event_motion_new (CLUTTER_EVENT_FLAG_RELATIVE_MOTION, time_us, input_device, - NULL, + device_native->last_tool, modifiers, GRAPHENE_POINT_INIT (x, y), GRAPHENE_POINT_INIT (dx, dy),