Bug 280037 - Keyboard layout systray icon doesn't work properly
Summary: Keyboard layout systray icon doesn't work properly
Status: RESOLVED WORKSFORME
Alias: None
Product: kxkb
Classification: Unmaintained
Component: general (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Andriy Rysin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-13 17:23 UTC by aditsu
Modified: 2014-02-15 18:01 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
kxkbrc (233 bytes, text/plain)
2011-08-14 13:48 UTC, aditsu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description aditsu 2011-08-13 17:23:59 UTC
Version:           4.7 (using KDE 4.7.0) 
OS:                Linux

I configured 4 keyboard layouts (English US - "us", English US international with dead keys - "int", Romanian - "ro", and English Dvorak - "dv") and I use the systray icon to show the current layout and switch between them by clicking.
However I recently noticed that I can only switch between 2 layouts by clicking. E.g. if "us" is selected, then clicking it will jump to "ro", and clicking "ro" jumps back to "us". If I right-click and select the layout from the list, then it actually switches to the next layout - selecting "us" switches to "int", selecting "int" switches to "ro", selecting "ro" switches to "dv", and selecting "dv" switches to "us". So I switch to "int" by selecting "us", then if I click the icon, it jumps to "dv", and clicking "dv" it jumps back to "int".


Reproducible: Sometimes

Steps to Reproduce:
I'm not sure what triggers the problem. It might have something to do with restarting kwin and/or plasma.


Expected Results:  
Cycle through 4 layouts by clicking; switch to the selected layout after right-click.
Comment 1 Andriy Rysin 2011-08-14 13:31:38 UTC
Could you please attach your kxkbrc file?

I suspect you turned on spare layouts feature in system settings - you might wanna turn it off
Comment 2 aditsu 2011-08-14 13:48:13 UTC
Created attachment 62822 [details]
kxkbrc

Spare layouts are not enabled
Comment 3 Andriy Rysin 2011-08-15 11:31:05 UTC
Could you please provide output of
setxkbmap -print
after you just logged in?

Also does reapplying of keyboard configuration help?
Comment 4 aditsu 2011-08-15 11:39:30 UTC
Do you need me to log out? That will have to wait (possibly a very long time).
Reapplying the keyboard config doesn't change anything.
Comment 5 Andriy Rysin 2011-08-15 12:01:03 UTC
ok, can you please provide current setxkbmap -print ?
Comment 6 aditsu 2011-08-15 13:08:06 UTC
xkb_keymap {
        xkb_keycodes  { include "evdev+aliases(qwerty)" };
        xkb_types     { include "complete"      };
        xkb_compat    { include "complete"      };
        xkb_symbols   { include "pc+us+us(intl):2+ro:3+us(dvorak):4+inet(evdev)"        };
        xkb_geometry  { include "pc(pc104)"     };
};
Comment 7 aditsu 2011-08-23 20:21:48 UTC
Ok, I restarted X now and here is setxkbmap -print:

xkb_keymap {
        xkb_keycodes  { include "evdev+aliases(qwerty)" };
        xkb_types     { include "complete"      };
        xkb_compat    { include "complete"      };
        xkb_symbols   { include "pc+us+us(intl):2+ro:3+us(dvorak):4+inet(evdev)"        };
        xkb_geometry  { include "pc(pc104)"     };
};

Looks the same to me.
Comment 8 aditsu 2011-08-23 20:23:10 UTC
Also, layout switching from the icon works correctly.... for now.
Comment 9 Andriy Rysin 2011-09-23 12:49:19 UTC
Is this still a problem? If yes which key are you using to switch keyboard layouts?
Comment 10 aditsu 2011-09-25 08:27:43 UTC
I haven't reproduced it since my last message. I'm running kde 4.7.1 now.
I don't use any key to switch keyboard layouts.
Comment 11 Andriy Rysin 2011-10-28 03:54:11 UTC
Does that mean we can close this bug?
Comment 12 aditsu 2011-10-31 15:02:08 UTC
(In reply to comment #11)
> Does that mean we can close this bug?

Yeah, ok. I'll reopen if it happens again.
Comment 13 aditsu 2011-12-16 17:46:48 UTC
Hi, it happened again, with the same symptoms (using kde 4.7.3 now). I connected to my computer with vnc earlier (through kde desktop sharing), I wonder if that had something to do with it.
Comment 14 aditsu 2012-01-19 00:37:00 UTC
It seems that it consistently happens after accessing my computer through vnc.
Comment 15 Andriy Rysin 2013-07-09 13:57:43 UTC
Sorry for late reply, I didn't have much time lately to work on this. Connecting though vnc may affect (support for xkb in remote desktop apps are quite sketchy).
If you still see it, could you please provide the output of setxkbmap -print after you connect via vnc? Thanks.
Comment 16 Andriy Rysin 2014-02-15 16:51:53 UTC
Is this still a problem, could you please provide the output of setxkbmap -print after you connect via vnc?
Comment 17 aditsu 2014-02-15 18:01:30 UTC
I'm on a different computer now, and can only connect via vnc from windows. I tried to reproduce the bug and it didn't happen.
If I reproduce it later, I'll reopen and provide the requested info.