xserver: Branch 'master'

Matthieu Herrb herrb at kemper.freedesktop.org
Tue May 29 13:55:14 PDT 2007


 hw/xfree86/common/xf86Events.c |   28 ----------------------------
 1 files changed, 28 deletions(-)

New commits:
diff-tree ee20c481eede0954f4a8bef5113979b101863c32 (from 60de6c7ef9bdcee043f63e8e0d493e6feba6a9d0)
Author: Matthieu Herrb <matthieu at deville.herrb.com>
Date:   Tue May 29 14:54:27 2007 -0600

    Remove wscons keyboard handling stuff that doesn't belong there anymore.

diff --git a/hw/xfree86/common/xf86Events.c b/hw/xfree86/common/xf86Events.c
index 3610c17..4da74e5 100644
--- a/hw/xfree86/common/xf86Events.c
+++ b/hw/xfree86/common/xf86Events.c
@@ -1208,31 +1208,3 @@ _X_EXPORT void
 DDXRingBell(int volume, int pitch, int duration) {
     xf86OSRingBell(volume, pitch, duration);
 }
-
-#ifdef WSCONS_SUPPORT
-
-/* XXX Currently XKB is mandatory. */
-
-extern int WSKbdToKeycode(int);
-
-void
-xf86PostWSKbdEvent(struct wscons_event *event)
-{
-  int type = event->type;
-  int value = event->value;
-  unsigned int keycode;
-  int blocked;
-
-  if (type == WSCONS_EVENT_KEY_UP || type == WSCONS_EVENT_KEY_DOWN) {
-    Bool down = (type == WSCONS_EVENT_KEY_DOWN ? TRUE : FALSE);
-
-    /* map the scancodes to standard XFree86 scancode */  	
-    keycode = WSKbdToKeycode(value);
-    if (!down) keycode |= 0x80;
-    /* It seems better to block SIGIO there */
-    blocked = xf86BlockSIGIO();
-    xf86PostKbdEvent(keycode);
-    xf86UnblockSIGIO(blocked);
-  }
-}
-#endif /* WSCONS_SUPPORT */


More information about the xorg-commit mailing list