From d5675b2bec4a56280528ad1675bf1b0cb3bdbb12 Mon Sep 17 00:00:00 2001 From: Marius Strobl Date: Wed, 24 Oct 2007 20:13:25 +0000 Subject: Re-add patch-at_scancode.c and patch-bsd_kbd.c, which prior to X.org 7.3 applied to the xorg-server port, so the special keys of Sun USB keyboards can be used with the sun_usb XKB symbols map and the LEDs of Sun RS232 keyboards work again. Approved by: flz --- .../xf86-input-keyboard/files/patch-bsd_kbd.c | 33 ++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 x11-drivers/xf86-input-keyboard/files/patch-bsd_kbd.c (limited to 'x11-drivers/xf86-input-keyboard/files/patch-bsd_kbd.c') diff --git a/x11-drivers/xf86-input-keyboard/files/patch-bsd_kbd.c b/x11-drivers/xf86-input-keyboard/files/patch-bsd_kbd.c new file mode 100644 index 000000000000..cc82bd4dde9a --- /dev/null +++ b/x11-drivers/xf86-input-keyboard/files/patch-bsd_kbd.c @@ -0,0 +1,33 @@ +--- src/bsd_kbd.c.orig Mon Oct 3 18:46:14 2005 ++++ src/bsd_kbd.c Fri Sep 29 23:26:17 2006 +@@ -74,6 +74,17 @@ + KbdDevPtr pKbd = (KbdDevPtr) pInfo->private; + int real_leds = 0; + ++#if defined (SYSCONS_SUPPORT) ++ if (pKbd->sunKbd) { ++ if (leds & 0x08) real_leds |= XLED1; ++ if (leds & 0x04) real_leds |= XLED4; ++ if (leds & 0x02) real_leds |= XLED3; ++ if (leds & 0x01) real_leds |= XLED2; ++ leds = real_leds; ++ real_leds = 0; ++ } ++#endif ++ + #ifdef LED_CAP + if (leds & XLED1) real_leds |= LED_CAP; + #endif +@@ -82,8 +93,12 @@ + #endif + #ifdef LED_SCR + if (leds & XLED3) real_leds |= LED_SCR; ++#ifdef LED_COMP ++ if (leds & XLED4) real_leds |= LED_COMP; ++#else + if (leds & XLED4) real_leds |= LED_SCR; + #endif ++#endif + + switch (pKbd->consType) { + -- cgit v1.2.3