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 --- src/grail-impl.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/grail-impl.h') diff --git a/src/grail-impl.h b/src/grail-impl.h index ba7745a..66fe4c7 100644 --- a/src/grail-impl.h +++ b/src/grail-impl.h @@ -30,7 +30,8 @@ struct grail_impl { struct touch_dev dev; struct evbuf evbuf; int filter_abs; - int hack_status; + int pointer_status; + int pointer_x, pointer_y; }; #endif -- cgit v1.2.3