wlr-touch: make dnd work

This commit is contained in:
Tony Crisci 2017-11-14 08:51:37 -05:00
parent 4eab61f86f
commit a337e95505
5 changed files with 115 additions and 7 deletions

View file

@ -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);
}
}