mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-06 13:29:45 -05:00
wlr-seat: refactor touch grab interface
This commit is contained in:
parent
b310fdac82
commit
4eab61f86f
4 changed files with 56 additions and 42 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue