From 161026ce49526593d0ebfd96a7c087e3e1b0f9f5 Mon Sep 17 00:00:00 2001 From: Dennis Jarosch Date: Thu, 10 Feb 2011 08:57:38 +0100 Subject: Add missing thumb reset at state extraction Fixes the bug that stopped tapped clicks from working when two thumbs were detected, by initializing the thumb variable for every new state. Signed-off-by: Dennis Jarosch Signed-off-by: Henrik Rydberg --- src/mtstate.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mtstate.c b/src/mtstate.c index 771048d..e24a1e8 100644 --- a/src/mtstate.c +++ b/src/mtstate.c @@ -76,6 +76,7 @@ void extract_mtstate(struct MTState *s, { int i; s->nfinger = 0; + s->thumb = 0; foreach_bit(i, hs->used) { if (!touching_finger(&hs->data[i], caps)) continue; -- cgit v1.2.3