From c915b7f620df19a7303051c5dd14a399c9fab5ed Mon Sep 17 00:00:00 2001 From: Henrik Rydberg Date: Mon, 4 Apr 2011 19:15:47 +0200 Subject: Glue touch gestures as well All motion-activated gestures are held for a short (glue) time to allow for direct transition to multi-finger gesture types. The touch gestures were mistakenly implemented without this. Fixed with this patch. LP: #748282 Signed-off-by: Henrik Rydberg --- src/gestures-touch.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gestures-touch.c b/src/gestures-touch.c index b6a2706..3aa607f 100644 --- a/src/gestures-touch.c +++ b/src/gestures-touch.c @@ -53,6 +53,8 @@ int gru_touch(struct grail *ge, state->gid = gin_gid_begin(ge, type, -PRIO_GESTURE, frame); state->active = 1; } + if (move->time - move->fm[FM_X].original_ms <= move->fm[FM_X].hold_ms) + return 0; state->nprop = gin_add_contact_props(ge->gin, state->prop, frame); gru_event(ge, state->gid, move, state->prop, state->nprop); return 1; @@ -88,6 +90,8 @@ int gru_wintouch(struct grail *ge, return 0; } } + if (move->time - move->fm[FM_X].original_ms <= move->fm[FM_X].hold_ms) + return 0; state->nprop = gin_add_contact_props(ge->gin, state->prop, frame); gru_event(ge, state->gid, move, state->prop, state->nprop); return 1; -- cgit v1.2.3