Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/sun Ignore KBD_IDLE one layer earlier - wskbd does n...
details: https://anonhg.NetBSD.org/src/rev/35e0f0fde91b
branches: trunk
changeset: 584352:35e0f0fde91b
user: martin <martin%NetBSD.org@localhost>
date: Wed Sep 14 07:32:43 2005 +0000
description:
Ignore KBD_IDLE one layer earlier - wskbd does not like it [and complains
in DEBUG kernels], and we already ignored it for raw mode.
diffstat:
sys/dev/sun/kbd.c | 13 ++++++-------
1 files changed, 6 insertions(+), 7 deletions(-)
diffs (41 lines):
diff -r 699a5dac049f -r 35e0f0fde91b sys/dev/sun/kbd.c
--- a/sys/dev/sun/kbd.c Wed Sep 14 02:12:34 2005 +0000
+++ b/sys/dev/sun/kbd.c Wed Sep 14 07:32:43 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kbd.c,v 1.50 2005/06/08 10:06:23 martin Exp $ */
+/* $NetBSD: kbd.c,v 1.51 2005/09/14 07:32:43 martin Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -47,7 +47,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kbd.c,v 1.50 2005/06/08 10:06:23 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kbd.c,v 1.51 2005/09/14 07:32:43 martin Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -506,6 +506,8 @@
/*
* We are using wskbd input mode, pass the event up.
*/
+ if (code == KBD_IDLE)
+ return; /* this key is not in the mapped */
kbd_input_wskbd(k, code);
return;
}
@@ -954,11 +956,8 @@
if (k->k_wsraw) {
u_char buf;
- /* do not bother userland with keyboard idle events */
- if (code != KBD_IDLE) {
- buf = code;
- wskbd_rawinput(k->k_wskbd, &buf, 1);
- }
+ buf = code;
+ wskbd_rawinput(k->k_wskbd, &buf, 1);
return;
}
#endif
Home |
Main Index |
Thread Index |
Old Index