wlr-seat: refactor touch grab interface

This commit is contained in:
Tony Crisci 2017-11-13 19:16:34 -05:00
parent b310fdac82
commit 4eab61f86f
4 changed files with 56 additions and 42 deletions

View file

@ -261,8 +261,8 @@ void roots_cursor_handle_touch_motion(struct roots_cursor *cursor,
double sx, sy;
view_at(desktop, lx, ly, &surface, &sx, &sy);
if (surface == point->surface) {
wlr_seat_touch_notify_motion(cursor->seat->seat, event->time_msec,
if (surface) {
wlr_seat_touch_notify_motion(cursor->seat->seat, surface, event->time_msec,
event->slot, sx, sy);
}
}