From: James S. <jsi...@us...> - 2001-12-27 18:59:55
|
Update of /cvsroot/linuxconsole/ruby/linux/drivers/char In directory usw-pr-cvs1:/tmp/cvs-serv6812 Modified Files: keyboard.c Log Message: Fixed the issue with having more keybaords than displays. Admin_vt takes priority over over VT's for getting a keyboard now. Index: keyboard.c =================================================================== RCS file: /cvsroot/linuxconsole/ruby/linux/drivers/char/keyboard.c,v retrieving revision 1.62 retrieving revision 1.63 diff -u -d -r1.62 -r1.63 --- keyboard.c 2001/12/23 00:04:18 1.62 +++ keyboard.c 2001/12/27 18:59:52 1.63 @@ -1048,6 +1048,7 @@ } static char kbd_name[] = "kbd"; +static int first_time; /* * When a keyboard (or other input device) is found, the kbd_connect @@ -1073,6 +1074,11 @@ return NULL; memset(handle, 0, sizeof(struct input_handle)); + + if (!first_time) { + first_time = 1; + vt = admin_vt; + } while (vt) { if (!vt->keyboard) { |