summaryrefslogtreecommitdiff
path: root/usr/src
diff options
context:
space:
mode:
authorHenrik Rydberg <rydberg@euromail.se>2010-11-11 17:33:10 +0100
committerHenrik Rydberg <rydberg@euromail.se>2010-11-11 17:33:10 +0100
commit53613b1d786922014e442a56ccef264b36c7c5be (patch)
treefc569cb7c21a0bd1eaee7effffcc49af9fcf39b2 /usr/src
parent287b84bd847d9de0b941f845baaa205242fcaaa3 (diff)
Mask pen switch events
When the pen comes in proximity, special packets appear on the multitouch device. This confuses userland which misinterprets the touch state. This patch masks the special pen packets consisting of a single finger of width 10, thereby fixing the problem. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Diffstat (limited to 'usr/src')
-rw-r--r--usr/src/dkms_source_tree/hid-ntrig.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/usr/src/dkms_source_tree/hid-ntrig.c b/usr/src/dkms_source_tree/hid-ntrig.c
index 462a9a7..2d6cbc1 100644
--- a/usr/src/dkms_source_tree/hid-ntrig.c
+++ b/usr/src/dkms_source_tree/hid-ntrig.c
@@ -373,6 +373,10 @@ static int ntrig_event (struct hid_device *hid, struct hid_field *field,
373 if (nd->hasmt) { 373 if (nd->hasmt) {
374 nd->nindex = 0; 374 nd->nindex = 0;
375 nd->ncol = value; 375 nd->ncol = value;
376 /* skip pen switch events */
377 if (nd->ncol == 1 &&
378 nd->col[0].w == 10 && nd->col[0].h == 10)
379 break;
376 report_frame(input, nd); 380 report_frame(input, nd);
377 } 381 }
378 break; 382 break;