aboutsummaryrefslogtreecommitdiff
path: root/rootston/cursor.c
diff options
context:
space:
mode:
authorTony Crisci <tony@dubstepdish.com>2017-11-14 08:51:37 -0500
committerTony Crisci <tony@dubstepdish.com>2017-11-15 08:34:48 -0500
commita337e9550587aea885779fe93340f1b90376682c (patch)
tree394c9b70fd98e7ffcd91dab459ab970eb0442d37 /rootston/cursor.c
parent4eab61f86f22f902a02f23f57cd318c2400d2729 (diff)
wlr-touch: make dnd work
Diffstat (limited to 'rootston/cursor.c')
-rw-r--r--rootston/cursor.c7
1 files changed, 6 insertions, 1 deletions
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);
}
}