diff options
Diffstat (limited to 'src/grail-api.c')
| -rw-r--r-- | src/grail-api.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/grail-api.c b/src/grail-api.c index bf5a7df..9cc94df 100644 --- a/src/grail-api.c +++ b/src/grail-api.c | |||
| @@ -90,10 +90,10 @@ static void handle_abs_events(struct grail *ge, const struct input_event *syn) | |||
| 90 | struct tapping_model *tap = &gru->tapping; | 90 | struct tapping_model *tap = &gru->tapping; |
| 91 | int used_move = grail_mask_count(gin->types, sizeof(gin->types)); | 91 | int used_move = grail_mask_count(gin->types, sizeof(gin->types)); |
| 92 | int used_tap = grail_mask_get(gin->types, GRAIL_TYPE_TAP1); | 92 | int used_tap = grail_mask_get(gin->types, GRAIL_TYPE_TAP1); |
| 93 | int ismove = move->single && (move->active & fm_mask) && !used_move; | 93 | int pointer = move->ntouch == 1; |
| 94 | int ishold = move->single && tap->active && !used_move; | 94 | int ismove = pointer && (move->active & fm_mask) && !used_move; |
| 95 | int ishold = pointer && tap->active && !used_move; | ||
| 95 | int istap = gru->tapping.tap == 1 && !used_tap; | 96 | int istap = gru->tapping.tap == 1 && !used_tap; |
| 96 | int pointer = move->single; | ||
| 97 | 97 | ||
| 98 | if (!impl->pointer_status && pointer) { | 98 | if (!impl->pointer_status && pointer) { |
| 99 | impl->report_x = impl->pointer_x; | 99 | impl->report_x = impl->pointer_x; |
