Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/sun Go back to filtering out KBD_IDLE events by defa...



details:   https://anonhg.NetBSD.org/src/rev/a117d0631900
branches:  trunk
changeset: 572366:a117d0631900
user:      bjh21 <bjh21%NetBSD.org@localhost>
date:      Fri Dec 31 14:18:35 2004 +0000

description:
Go back to filtering out KBD_IDLE events by default.  The Xsun shipped with
NetBSD 2.0 gets confused by them (generating events for keycode 134 when
all keys are released), and even when that's fixed we should keep one release
worth of backward compatibility.

diffstat:

 sys/dev/sun/kbd.c |  7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diffs (35 lines):

diff -r a04c65996c33 -r a117d0631900 sys/dev/sun/kbd.c
--- a/sys/dev/sun/kbd.c Fri Dec 31 12:14:22 2004 +0000
+++ b/sys/dev/sun/kbd.c Fri Dec 31 14:18:35 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kbd.c,v 1.40 2004/04/22 00:17:13 itojun Exp $  */
+/*     $NetBSD: kbd.c,v 1.41 2004/12/31 14:18:35 bjh21 Exp $   */
 
 /*
  * Copyright (c) 1992, 1993
@@ -47,7 +47,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kbd.c,v 1.40 2004/04/22 00:17:13 itojun Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kbd.c,v 1.41 2004/12/31 14:18:35 bjh21 Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -477,8 +477,6 @@
        int code;
 {
        if (k->k_evmode) {
-
-#ifdef KBD_IDLE_EVENTS
                /*
                 * XXX: is this still true?
                 * IDLEs confuse the MIT X11R4 server badly, so we must drop them.
@@ -488,7 +486,6 @@
                 */
                if (code == KBD_IDLE)
                        return;
-#endif
 
                /*
                 * Keyboard is generating firm events.  Turn this keystroke



Home | Main Index | Thread Index | Old Index