I have set the keyboard layout changing to (left) Alt+Space. (have had it for quite some time now and only recently got this issue - maybe because OSD didn't show up for layout changing before) Now, every time that I press the space key (without modifiers, with ctrl, with anything) I get the OSD stating my keyboard layout has been changed. The interesting thing is that the OSD actually cycles through all the layouts, even if the layout is never changed. When I do press Alt+Space, the layout changes as it should, and the OSD pops up telling me I changed to a wrong one because it thinks the ordinary 'space' presses changed the layout before. The icon notifier in the system tray works without issues - it always correctly shows the current layout. The place where the OSD is triggered is Xkb::updateModifiers (tested with bustle). Reproducible: Always
Is that on Wayland or X11?
X11
Please try: https://phabricator.kde.org/D2521
With that patch I don't get the OSD at all. Though I guess the issue of not showing OSD is not a part of this one, so we can say D2521 fixes this one :)
> Though I guess the issue of not showing OSD I think that's due to changing the layout through the combination. If you would change through the kglobalaccel shortcut (ctrl+alt+k) or through the sni I guess you would also get the OSD. IIRC the kded module is not able to detect layout changes through the shortcuts configured in the layout. On Wayland though that works.
Yes, C+A+K does show the OSD.
Git commit 7d7bbcc56aa201964c63391a3686fb7efad36dfa by Martin Gräßlin. Committed on 21/08/2016 at 16:15. Pushed by graesslin into branch 'master'. Only trigger keyboard layout OSD if KWin manages input Summary: On platforms where KWin does not manage input, that is does not use libinput, KWin gets the keyboard layout from another place, e.g. the X server. In that case KWin should of course not trigger the layout changed OSD if KWin thinks (for whatever reason) that the layout changed. Reviewers: #kwin, #plasma_on_wayland Subscribers: plasma-devel, kwin Tags: #plasma_on_wayland, #kwin Differential Revision: https://phabricator.kde.org/D2521 M +10 -7 keyboard_input.cpp http://commits.kde.org/kwin/7d7bbcc56aa201964c63391a3686fb7efad36dfa