Re: 2.6.0-mm1 - Patch 2/2 - mousedev-dont-stop
From: Dmitry Torokhov
Date: Thu Dec 25 2003 - 04:39:30 EST
===================================================================
ChangeSet@xxxxxx, 2003-12-25 03:56:28-05:00, dtor_core@xxxxxxxxxxxxx
Input: correctly perform PS/2 (mousedev) emulation for touchpads
generating absolute events (do not stop with the first
client)
mousedev.c | 16 +++++++++-------
1 files changed, 9 insertions(+), 7 deletions(-)
===================================================================
diff -Nru a/drivers/input/mousedev.c b/drivers/input/mousedev.c
--- a/drivers/input/mousedev.c Thu Dec 25 03:57:50 2003
+++ b/drivers/input/mousedev.c Thu Dec 25 03:57:50 2003
@@ -148,14 +148,16 @@
break;
case EV_KEY:
+ if (code == BTN_TOUCH && test_bit(BTN_TOOL_FINGER, handle->dev->keybit)) {
+ /* Handle touchpad data */
+ list->touch = value;
+ if (!list->touch)
+ list->pkt_count = 0;
+ break;
+ }
+
switch (code) {
- case BTN_TOUCH: /* Handle touchpad data */
- if (test_bit(BTN_TOOL_FINGER, handle->dev->keybit)) {
- list->touch = value;
- if (!list->touch)
- list->pkt_count = 0;
- return;
- }
+ case BTN_TOUCH:
case BTN_0:
case BTN_FORWARD:
case BTN_LEFT: index = 0; break;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/