Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/sun Do not bother to post "keyboard idle" events to ...



details:   https://anonhg.NetBSD.org/src/rev/c96d7a2c17e8
branches:  trunk
changeset: 581837:c96d7a2c17e8
user:      martin <martin%NetBSD.org@localhost>
date:      Tue Jun 07 10:29:08 2005 +0000

description:
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 a5ba06b7e095 -r c96d7a2c17e8 sys/dev/sun/kbd.c
--- a/sys/dev/sun/kbd.c Tue Jun 07 09:51:34 2005 +0000
+++ b/sys/dev/sun/kbd.c Tue Jun 07 10:29:08 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kbd.c,v 1.48 2005/05/17 06:18:31 martin Exp $  */
+/*     $NetBSD: kbd.c,v 1.49 2005/06/07 10:29:08 martin Exp $  */
 
 /*
  * Copyright (c) 1992, 1993
@@ -47,7 +47,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kbd.c,v 1.48 2005/05/17 06:18:31 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kbd.c,v 1.49 2005/06/07 10:29:08 martin 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