Re: Ignore accidental input
Johannes Berg wrote:
> If you want to, feel free, it isn't really bothering me enough right
> now to fix it.
Ok, after some hours of reading the kernel source, here my patch. I'm not
familiar with kernel programming, so this is only a small hack and I'm
happy that I got it working at all ;-)
It works for me, but a solution to make it switchable at runtime would
still be nice.
cu, Magnum
--
Carl Magnus Rosenbaum M.A. Tel: 089 - 700 666 26
Administration - Programmierung - Weiterbildung Fax: 089 - 700 666 86
http://cmr.forestfactory.de/ Mobil: 0163 - 700 666 2
PGP Fingerprint: DEBC 3C99 EF1D 74F0 D4C7 EFF5 C268 3690 0EA1 7641
--- linux-2.6.17-rc4_orig/drivers/input/mousedev.c 2006-05-17 11:58:11.000000000 +0200
+++ linux-2.6.17-rc4/drivers/input/mousedev.c 2006-05-17 11:46:28.000000000 +0200
@@ -275,12 +275,14 @@
* We rely on the fact that mousedev_mix always has 0
* motion packet so we won't mess current position.
*/
+ /*
set_bit(0, &mousedev->packet.buttons);
set_bit(0, &mousedev_mix.packet.buttons);
mousedev_notify_readers(mousedev, &mousedev_mix.packet);
mousedev_notify_readers(&mousedev_mix, &mousedev_mix.packet);
clear_bit(0, &mousedev->packet.buttons);
clear_bit(0, &mousedev_mix.packet.buttons);
+ */
}
mousedev->touch = mousedev->pkt_count = 0;
mousedev->frac_dx = 0;
Reply to: