Red Hat Bugzilla – Bug 477592
kxkb shortcut does not change keyboard layout
Last modified: 2008-12-25 11:07:16 EST
Description of problem:
I'm not sure which of kxkb or setxkbmap is the cause, but trying to switch keyboard layouts when using the keyboard shortcut does not work.
I have activated option in kxkb - Switching Options, Switch Policy - Application. Pressing the shortcut will change the keyboard, but kkxb does not change the indication. In result the change is global, not per application, and the bad thing is that indication does not show what layout is currently used.
Version-Release number of selected component (if applicable):
Currently versions are:
In KDE4 open System Settings, go to Regional & Language and click Kayboard Layout.
Add some layout preferably non latin to see the difference better. I'm using BG layout with phonetic variant. The setxkbmap command shown is:
setxkbmap -model pc104 -layout us,bg -variant basic,phonetic
For switching layouts I'm using from Advanced tab Layout switching option "Alt+Shift change layout", but I guess the standard Alt+Ctrl+K will do the same.
I have to say that pressing kxkb indicator with the mouse works correctly as it is set to policy - application.
There is a problem only when using the shortcut.
Steps to Reproduce:
1. Press keyboard shortcut.
kxkb layout does not change the indication, but
the layout is changed globally and it is not clear what layout is currently used unless you type some letters.
kxkb to change layout and change indicator only for the current application.
It's not clear for me what package is the cause, because going to older kdebase-workspace didn't changed anything. I even tried with changing back to older xorg-x11-xkb-utils, but no difference.
This is probably due to evdev, the new combined keyboard and mouse driver used for keyboards since F10 (and for mice since F9). I've read other complaints about setxkbmap working badly with evdev.
It appears to be fixed after yesterday's update (23 or 24 December 2008), including updates of xorg. Also xorg-x11-drv-evdev was updated.
Thanks for the fix, I'm closing this bug.