diff options
author | Marius Strobl <marius@FreeBSD.org> | 2007-10-24 20:13:25 +0000 |
---|---|---|
committer | Marius Strobl <marius@FreeBSD.org> | 2007-10-24 20:13:25 +0000 |
commit | d5675b2bec4a56280528ad1675bf1b0cb3bdbb12 (patch) | |
tree | b8df2446604d0a4020a61c9ba13f0ea7ea042cfa /x11-drivers/xf86-input-keyboard/files/patch-bsd_kbd.c | |
parent | Add an entry about ports/textproc/scim-kmfl-sil-ipa-unicode5 (diff) |
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
Diffstat (limited to 'x11-drivers/xf86-input-keyboard/files/patch-bsd_kbd.c')
-rw-r--r-- | x11-drivers/xf86-input-keyboard/files/patch-bsd_kbd.c | 33 |
1 files changed, 33 insertions, 0 deletions
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) { + |