From a337e9550587aea885779fe93340f1b90376682c Mon Sep 17 00:00:00 2001 From: Tony Crisci Date: Tue, 14 Nov 2017 08:51:37 -0500 Subject: wlr-touch: make dnd work --- rootston/cursor.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'rootston') diff --git a/rootston/cursor.c b/rootston/cursor.c index eff81104..16441f4b 100644 --- a/rootston/cursor.c +++ b/rootston/cursor.c @@ -262,8 +262,13 @@ void roots_cursor_handle_touch_motion(struct roots_cursor *cursor, view_at(desktop, lx, ly, &surface, &sx, &sy); if (surface) { - wlr_seat_touch_notify_motion(cursor->seat->seat, surface, event->time_msec, + wlr_seat_touch_point_focus(cursor->seat->seat, surface, + event->time_msec, event->slot, sx, sy); + wlr_seat_touch_notify_motion(cursor->seat->seat, event->time_msec, event->slot, sx, sy); + } else { + wlr_seat_touch_point_clear_focus(cursor->seat->seat, event->time_msec, + event->slot); } } -- cgit v1.2.3