summaryrefslogtreecommitdiff
path: root/src/hwdata.h
diff options
context:
space:
mode:
authorHenrik Rydberg <rydberg@euromail.se>2010-04-18 16:22:56 +0200
committerHenrik Rydberg <rydberg@euromail.se>2010-04-18 16:27:52 +0200
commitffe299eaea8a7295228701205c9286cc66e9ab0f (patch)
tree6e95543ab828376f1e418e03e8508dbf987faaed /src/hwdata.h
parent182d9419ded03262166514e3c76033a8daa14141 (diff)
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 <rydberg@euromail.se>
Diffstat (limited to 'src/hwdata.h')
-rw-r--r--src/hwdata.h2
1 files changed, 1 insertions, 1 deletions
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 {
73 struct FingerData finger[DIM_FINGER]; 73 struct FingerData finger[DIM_FINGER];
74 unsigned mask[DIM_FINGER], mread[DIM_FINGER]; 74 unsigned mask[DIM_FINGER], mread[DIM_FINGER];
75 unsigned button; 75 unsigned button;
76 int nfinger, nread; 76 int nfinger, mtread, nread;
77 mstime_t evtime; 77 mstime_t evtime;
78}; 78};
79 79