diff options
Diffstat (limited to 'src/gestures-tapping.c')
| -rw-r--r-- | src/gestures-tapping.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gestures-tapping.c b/src/gestures-tapping.c index cb30168..aa8e6d6 100644 --- a/src/gestures-tapping.c +++ b/src/gestures-tapping.c | |||
| @@ -46,6 +46,7 @@ int gru_tapping(struct grail *ge, | |||
| 46 | struct tapping_model *state = &gru->tapping; | 46 | struct tapping_model *state = &gru->tapping; |
| 47 | struct move_model *move = &gru->move; | 47 | struct move_model *move = &gru->move; |
| 48 | grail_time_t up = move->time - state->end; | 48 | grail_time_t up = move->time - state->end; |
| 49 | state->tap = 0; | ||
| 49 | if (move->ntouch && move->ntouch < state->mintouch) | 50 | if (move->ntouch && move->ntouch < state->mintouch) |
| 50 | state->end = move->time; | 51 | state->end = move->time; |
| 51 | if (move->ntouch > state->maxtouch) { | 52 | if (move->ntouch > state->maxtouch) { |
| @@ -80,6 +81,7 @@ int gru_tapping(struct grail *ge, | |||
| 80 | state->active = 0; | 81 | state->active = 0; |
| 81 | return 0; | 82 | return 0; |
| 82 | } | 83 | } |
| 84 | state->tap = state->maxtouch; | ||
| 83 | state->prop[GRAIL_PROP_TAP_DT] = t; | 85 | state->prop[GRAIL_PROP_TAP_DT] = t; |
| 84 | gin_gid_event(ge, state->gid, x, y, state->maxtouch, | 86 | gin_gid_event(ge, state->gid, x, y, state->maxtouch, |
| 85 | state->prop, state->nprop, 1); | 87 | state->prop, state->nprop, 1); |
