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.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/grail-api.c b/src/grail-api.c
index 03355dc..7c054a9 100644
--- a/src/grail-api.c
+++ b/src/grail-api.c
@@ -82,17 +82,10 @@ static void tp_sync(struct touch_engine *engine,
82 evbuf_clear(&x->evbuf); 82 evbuf_clear(&x->evbuf);
83 return; 83 return;
84 } 84 }
85 if (hack > x->hack_status) {
86 ev = *syn;
87 ev.type = EV_KEY;
88 ev.code = BTN_TOUCH;
89 ev.value = hack;
90 ge->event(ge, &ev);
91 x->hack_status = hack;
92 nevent++;
93 }
94 while (!evbuf_empty(&x->evbuf)) { 85 while (!evbuf_empty(&x->evbuf)) {
95 evbuf_get(&x->evbuf, &ev); 86 evbuf_get(&x->evbuf, &ev);
87 if (!hack && ev.type == EV_ABS)
88 continue;
96 if (dofilt && grail_mask_get(filtered, ev.type)) 89 if (dofilt && grail_mask_get(filtered, ev.type))
97 continue; 90 continue;
98 if (extra_filtered(&ev)) 91 if (extra_filtered(&ev))
@@ -100,7 +93,7 @@ static void tp_sync(struct touch_engine *engine,
100 ge->event(ge, &ev); 93 ge->event(ge, &ev);
101 nevent++; 94 nevent++;
102 } 95 }
103 if (hack < x->hack_status) { 96 if (hack != x->hack_status) {
104 ev = *syn; 97 ev = *syn;
105 ev.type = EV_KEY; 98 ev.type = EV_KEY;
106 ev.code = BTN_TOUCH; 99 ev.code = BTN_TOUCH;