From f1407ff81dbeb0f7e3b6c43cad7a56b6d5af1cfb Mon Sep 17 00:00:00 2001 From: Rusty Lynch Date: Thu, 8 Aug 2013 21:13:57 -0700 Subject: [PATCH] input: Store touch position and time when we start an implicit touch grab --- src/input.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/input.c b/src/input.c index e533a58..f76fcb9 100644 --- a/src/input.c +++ b/src/input.c @@ -1056,6 +1056,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; -- 2.7.4