From babe344373d036d57a270658d134d6c0b334f280 Mon Sep 17 00:00:00 2001 From: Henrik Rydberg Date: Thu, 26 Aug 2010 16:23:38 +0200 Subject: Correct abs event handling The current code lets abs events through during one-finger drags, and tapping does not work properly due to abs events not always being present during taps. Track the pointer position and emit abs events only if no gestures are in effect, and only if not explicitly filtered. Signed-off-by: Henrik Rydberg --- test/grail-gesture.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'test/grail-gesture.c') diff --git a/test/grail-gesture.c b/test/grail-gesture.c index d30e713..d2e0e7d 100644 --- a/test/grail-gesture.c +++ b/test/grail-gesture.c @@ -46,8 +46,6 @@ static int tp_get_clients(struct grail *ge, static void tp_event(struct grail *ge, const struct input_event *ev) { - if (!grail_mask_get(flag_mask, GRAIL_TYPE_DRAG1)) - return; fprintf(stderr, "event %d 0x%x %d\n", ev->type, ev->code, ev->value); } @@ -112,7 +110,7 @@ int main(int argc, char *argv[]) fprintf(stderr, "error: could not open touch device\n"); return -1; } - grail_filter_abs_events(&ge, 1); + //grail_filter_abs_events(&ge, 1); struct grail_coord min = { -2, -1 }, max = { 2, 1 }; grail_set_bbox(&ge, &min, &max); -- cgit v1.2.3