Recently started to use Xfce, configured keyboard layout plugin and noticed that my keyboard layout gets randomly swapped from time to time. I do a lot of typing, so this becomes obvious and I can see it happening many times a day. It seems like it doesn't depend on the keys I am pressing (it can be any letter, it can be an arrow, whatever). But its for sure that it's not me accidentally triggering the switch. I clearly stumbled into this bug by just moving cursor: pressing 'j','j',j' in vim - bam! keyboard switched - no more going further (vim doesn't understand Russian letters). According to this (recent) Arch forum post, I'm not the only one: https://bbs.archlinux.org/viewtopic.php?pid=1283265 Some details: Layouts: en, ru Layout switch key: Caps Lock Steps to reproduce: none, other than type a lot in English and see it switch to Russian! Seems to appear rather randomly.
In my experience, the switches happen every 10 minutes, and is not related to keyboard input. As for my little test right now: 11:29AM Manual switch se->us int'l. Leave computer 11:32AM Check the computer. It has switched to se. Manual switch se->us, leave computer 11:38AM Still us. Leave computer again. 11:42AM Check the computer. Back to se. Manually set it back to us again. 11:51AM While I'm staring at the indicator in the notification bar, it switches back to se. (No hands on the keyboard!) I have se and us (international) installed; se is the top option under 'properties', but us is marked as default.
Thanks Mikael, I can reproduce it with your config; I'll look into this.
If anybody is willing to test out the code from git, a fix has been committed to 4.10_panel_support branch. To check it out: git clone --branch 4.10_panel_support git://git.xfce.org/panel-plugins/xfce4-xkb-plugin
No git version here atm, but: Thank you very much! :))
Any hints on when to expect a package with this fix released?
Fixed in 0.5.6