* [PATCH] ppc32: PowerMac trackpad problems
@ 2004-08-26 8:52 Benjamin Herrenschmidt
0 siblings, 0 replies; only message in thread
From: Benjamin Herrenschmidt @ 2004-08-26 8:52 UTC (permalink / raw)
To: Andrew Morton; +Cc: Linus Torvalds, Linux Kernel list
Hi !
The trackpad on recent Apple laptops tend to emmit spurrious 'right clicks'
apparently. This patch from Alex Clausen fixes it, please apply. The trackpad
cannot normally emit a right click, so just filter those out.
Ben.
Signed-off-by: Alexander Clausen <alex@skip86.com>
Signed-off-by: Michael Schmitz <schmitz@opal.biophys.uni-duesseldorf.de>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
--- drivers/macintosh/adbhid.c.orig 2004-03-10 23:41:43.000000000 +0100
+++ drivers/macintosh/adbhid.c 2004-03-10 23:41:34.000000000 +0100
@@ -327,7 +327,7 @@
input_report_key(&adbhid[id]->input, BTN_LEFT, !((data[1] >> 7) & 1));
input_report_key(&adbhid[id]->input, BTN_MIDDLE, !((data[2] >> 7) & 1));
- if (nb >= 4)
+ if (nb >= 4 && adbhid[id]->mouse_kind != ADBMOUSE_TRACKPAD)
input_report_key(&adbhid[id]->input, BTN_RIGHT, !((data[3] >> 7) & 1));
input_report_rel(&adbhid[id]->input, REL_X,
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-08-26 8:55 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-26 8:52 [PATCH] ppc32: PowerMac trackpad problems Benjamin Herrenschmidt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox