Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-3]: src/sys/dev/sun Pull up revision 1.49 (requested by martin in...
details: https://anonhg.NetBSD.org/src/rev/57222e71c8a0
branches: netbsd-3
changeset: 576062:57222e71c8a0
user: snj <snj%NetBSD.org@localhost>
date: Thu Jun 09 08:07:19 2005 +0000
description:
Pull up revision 1.49 (requested by martin in ticket #430):
Do not bother to post "keyboard idle" events to userland when we are
in wskbd raw input mode.
diffstat:
sys/dev/sun/kbd.c | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
diffs (32 lines):
diff -r a603223282c4 -r 57222e71c8a0 sys/dev/sun/kbd.c
--- a/sys/dev/sun/kbd.c Thu Jun 09 07:52:31 2005 +0000
+++ b/sys/dev/sun/kbd.c Thu Jun 09 08:07:19 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kbd.c,v 1.43.2.5 2005/06/09 07:15:19 snj Exp $ */
+/* $NetBSD: kbd.c,v 1.43.2.6 2005/06/09 08:07:19 snj Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -47,7 +47,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kbd.c,v 1.43.2.5 2005/06/09 07:15:19 snj Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kbd.c,v 1.43.2.6 2005/06/09 08:07:19 snj Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -954,8 +954,11 @@
if (k->k_wsraw) {
u_char buf;
- buf = code;
- wskbd_rawinput(k->k_wskbd, &buf, 1);
+ /* do not bother userland with keyboard idle events */
+ if (code != 0x7f) {
+ buf = code;
+ wskbd_rawinput(k->k_wskbd, &buf, 1);
+ }
return;
}
#endif
Home |
Main Index |
Thread Index |
Old Index