Hi!

Attached are two patches.

One of them fixes the behavior of the # key. Yes, again when simplifying
the keybdev code I made the same mistake and forgot the fact that the
103rd key generates a different code on USB from the \| key, whilst on
PS/2 these two keys behave exactly the same. This causes trouble to
people.

The other fixes a bug in counting the number of opens of the
/dev/input/mice device, which was causing the mouse pointer to stop
moving if the mouse was unplugged and replugged.

-- 
Vojtech Pavlik
SuSE Labs
--- mousedev.c.old      Tue May  2 00:03:04 2000
+++ mousedev.c  Tue May  2 08:13:27 2000
@@ -418,10 +418,8 @@
 
        mousedev->devfs = input_register_minor("mouse%d", minor, MOUSEDEV_MINOR_BASE);
 
-       if (mousedev_mix.open) {
+       if (mousedev_mix.open)
                input_open_device(&mousedev->handle);
-               mousedev_mix.open++;
-       }
 
        printk("mouse%d: PS/2 mouse device for input%d\n", minor, dev->number);
 
@@ -432,10 +430,8 @@
 {
        struct mousedev *mousedev = handle->private;
 
-       if (mousedev->open || mousedev_mix.open) {
+       if (mousedev->open || mousedev_mix.open)
                input_close_device(handle);
-               mousedev_mix.open--;
-       }
 
        if (!--mousedev->used) {
                input_unregister_minor(mousedev->devfs);
--- keybdev.c.old       Thu Apr 27 08:39:19 2000
+++ keybdev.c   Tue May  2 11:45:19 2000
@@ -46,7 +46,7 @@
         32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47,
         48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63,
         64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79,
-        80, 81, 82, 83, 89, 85, 86, 87, 88,115,119,120,121,375,123, 90,
+        80, 81, 82, 83, 43, 85, 86, 87, 88,115,119,120,121,375,123, 90,
        284,285,309,298,312, 91,327,328,329,331,333,335,336,337,338,339,
        367,294,293,286,350, 92,334,512,116,377,109,111,373,347,348,349,
        360, 93, 94, 95, 98,376,100,101,357,316,354,304,289,102,351,355,

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to