From aaf82ee332cf92c615a98ccd79fe3fe666a52b8f Mon Sep 17 00:00:00 2001 From: xurui Date: Thu, 7 Aug 2025 11:06:46 +0800 Subject: [PATCH] wlr_drag: drag motion signal also needs to be sent Signed-off-by: xurui --- types/data_device/wlr_drag.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/types/data_device/wlr_drag.c b/types/data_device/wlr_drag.c index b780eedac..8c17eeb68 100644 --- a/types/data_device/wlr_drag.c +++ b/types/data_device/wlr_drag.c @@ -308,6 +308,14 @@ static void drag_handle_touch_motion(struct wlr_seat_touch_grab *grab, wl_fixed_from_double(point->sx), wl_fixed_from_double(point->sy)); } + + struct wlr_drag_motion_event event = { + .drag = drag, + .time = time, + .sx = point->sx, + .sy = point->sy, + }; + wl_signal_emit_mutable(&drag->events.motion, &event); } }