summaryrefslogtreecommitdiff
path: root/src/grail-api.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/grail-api.c')
-rw-r--r--src/grail-api.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/grail-api.c b/src/grail-api.c
index d0712b3..0673120 100644
--- a/src/grail-api.c
+++ b/src/grail-api.c
@@ -106,13 +106,14 @@ static void tp_sync(struct touch_dev *dev,
106 struct input_event ev; 106 struct input_event ev;
107 struct grail *ge = dev->priv; 107 struct grail *ge = dev->priv;
108 struct grail_impl *impl = ge->impl; 108 struct grail_impl *impl = ge->impl;
109 struct gesture_inserter *gin = ge->gin;
109 struct touch_frame *frame = &dev->frame; 110 struct touch_frame *frame = &dev->frame;
110 grail_mask_t filtered[DIM_EV_TYPE_BYTES]; 111 int pointer, used_move, nevent = 0;
111 int pointer, nevent = 0;
112 gin_frame_begin(ge, frame); 112 gin_frame_begin(ge, frame);
113 gru_recognize(ge, frame); 113 gru_recognize(ge, frame);
114 gin_frame_end(ge, filtered, sizeof(filtered), frame); 114 gin_frame_end(ge, frame);
115 pointer = pointer_active(ge) && !grail_mask_get(filtered, EV_ABS); 115 used_move = grail_mask_count(gin->types, sizeof(gin->types));
116 pointer = pointer_active(ge) && !used_move;
116 117
117 if (!ge->event) { 118 if (!ge->event) {
118 evbuf_clear(&impl->evbuf); 119 evbuf_clear(&impl->evbuf);