commit | f1407ff81dbeb0f7e3b6c43cad7a56b6d5af1cfb | [log] [tgz] |
---|---|---|
author | Rusty Lynch <rusty.lynch@intel.com> | Thu Aug 08 21:13:57 2013 -0700 |
committer | Kristian Høgsberg <krh@bitplanet.net> | Thu Aug 08 22:01:42 2013 -0700 |
tree | 35ce0005292c6480bddffabbc64e95fc76fad16d | |
parent | 92e83929f0485e739ecd57d8b04e176259b296d1 [diff] [blame] |
input: Store touch position and time when we start an implicit touch grab
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 @@ } 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;