mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-08 13:38:05 +02:00
input: Store touch position and time when we start an implicit touch grab
This commit is contained in:
parent
36ced9b375
commit
f26beb0607
1 changed files with 8 additions and 0 deletions
|
|
@ -1059,6 +1059,14 @@ notify_touch(struct weston_seat *seat, uint32_t time, int touch_id,
|
|||
}
|
||||
|
||||
grab->interface->down(grab, time, touch_id, sx, sy);
|
||||
if (seat->num_tp == 1) {
|
||||
touch->grab_serial =
|
||||
wl_display_get_serial(ec->wl_display);
|
||||
touch->grab_time = time;
|
||||
touch->grab_x = x;
|
||||
touch->grab_y = y;
|
||||
}
|
||||
|
||||
break;
|
||||
case WL_TOUCH_MOTION:
|
||||
es = (struct weston_surface *) touch->focus;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue