summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenrik Rydberg <rydberg@euromail.se>2011-03-24 20:34:20 +0100
committerHenrik Rydberg <rydberg@euromail.se>2011-03-24 20:34:20 +0100
commit43fe69ceb335a0ad1fd55fb58acee124d6d9cf19 (patch)
treed54721da8b6fa30f457e671db7b3be49d3dc5eb3
parent0a1d156e55444cb821fa8d14e7b4a7dff4cf7901 (diff)
Fix problem with tap properties at touch release -again
This problem was fixed in the early grail stages, and reappeared in Aug 2010, in commit 241c5ec0. This one-liner fixes the problem, because the only interesting update to the properties state at maximum number of fingers is the end time. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
-rw-r--r--src/gestures-tapping.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gestures-tapping.c b/src/gestures-tapping.c
index 24ddf1a..656d6e9 100644
--- a/src/gestures-tapping.c
+++ b/src/gestures-tapping.c
@@ -89,7 +89,7 @@ int gru_tapping(struct grail *ge,
89 } 89 }
90 if (!move->ntouch) 90 if (!move->ntouch)
91 return 0; 91 return 0;
92 set_props(ge->gin, state, move, frame); 92 state->prop[GRAIL_PROP_TAP_DT] = move->time - state->start;
93 if ((move->active & fm_mask) || 93 if ((move->active & fm_mask) ||
94 move->time - state->start > move->fm[FM_X].bar_ms) { 94 move->time - state->start > move->fm[FM_X].bar_ms) {
95 gin_gid_discard(ge, state->gid); 95 gin_gid_discard(ge, state->gid);