Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 138449 Details for
Bug 202227
a fix for x11-drivers/xf86-input-keyboard-1.2.2.ebuild, which make the LED work again
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
LED fix for xf86-input-keyboard-1.2.2 by Shawn
xf86-input-keyboard-1.2.2-led.patch (text/plain), 1.35 KB, created by
Yu Yuwei
on 2007-12-14 11:11:45 UTC
(
hide
)
Description:
LED fix for xf86-input-keyboard-1.2.2 by Shawn
Filename:
MIME Type:
Creator:
Yu Yuwei
Created:
2007-12-14 11:11:45 UTC
Size:
1.35 KB
patch
obsolete
>--- xf86-input-keyboard-1.2.2.orig/src/kbd.c 2007-08-20 16:38:24.000000000 -0600 >+++ xf86-input-keyboard-1.2.2/src/kbd.c 2007-09-21 10:31:06.000000000 -0600 >@@ -676,9 +676,6 @@ sunKeyboards: > keyc->curKeySyms.mapWidth * > (keycode - keyc->curKeySyms.minKeyCode)); > >-#ifdef XKB >- if (pKbd->noXkb) { >-#endif > /* > * Filter autorepeated caps/num/scroll lock keycodes. > */ >@@ -733,7 +730,7 @@ sunKeyboards: > > /* > * LockKey special handling: >- * ignore releases, toggle on & off on presses. >+ * ignore releases, toggle on & off on presses, preserve 'down'. > * Don't deal with the Caps_Lock keysym directly, but check the lock modifier > */ > >@@ -746,20 +743,19 @@ sunKeyboards: > if (keysym[1] == XF86XK_ModeLock) > changeLock = MODEFLAG; > >- if (changeLock) { >- if (!down) >- return; >- >- pKbd->keyLeds &= ~changeLock; >- >- if (KeyPressed(keycode)) { >- down = !down; >- } else { >- pKbd->keyLeds |= changeLock; >- } >+ if (changeLock && down) { >+ if (changeLock & pKbd->keyLeds) >+ /* led on. Turn it off */ >+ pKbd->keyLeds &= ~changeLock; >+ else >+ /* led off. Turn it on. */ >+ pKbd->keyLeds |= changeLock; > UpdateLeds(pInfo); >- } >+ } > >+#ifdef XKB >+ if (pKbd->noXkb) { >+#endif > if (!pKbd->CustomKeycodes) { > /* > * normal, non-keypad keys
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 202227
: 138449 |
138453