From ffe299eaea8a7295228701205c9286cc66e9ab0f Mon Sep 17 00:00:00 2001 From: Henrik Rydberg Date: Sun, 18 Apr 2010 16:22:56 +0200 Subject: Hold MT data during pure button events Some devices send button events through a separate device, causing the driver to temporarily lose the MT state. As a result, spurious button events are emitted in conjunction with multi-finger clicks. This patch makes sure that the MT state is updated only after receiving MT data, restoring click normality. Signed-off-by: Henrik Rydberg --- src/hwdata.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/hwdata.h') diff --git a/src/hwdata.h b/src/hwdata.h index 81d847b..15a9fcb 100644 --- a/src/hwdata.h +++ b/src/hwdata.h @@ -73,7 +73,7 @@ struct HWData { struct FingerData finger[DIM_FINGER]; unsigned mask[DIM_FINGER], mread[DIM_FINGER]; unsigned button; - int nfinger, nread; + int nfinger, mtread, nread; mstime_t evtime; }; -- cgit v1.2.3