Bug 431360 - Cannot switch keyboard layout with shortcut after login
Summary: Cannot switch keyboard layout with shortcut after login
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: input (other bugs)
Version First Reported In: 5.20.5
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2021-01-09 17:08 UTC by Ilya Bizyaev
Modified: 2021-04-08 15:15 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ilya Bizyaev 2021-01-09 17:08:07 UTC
Cannot switch keyboard layout with shortcut after login


SUMMARY
When I log in to the Plasma session (X11), my assigned layout switching shortcut (Alt-Shift) doesn't work. Left-clicking the panel indicator also has no effect. To be able to switch layouts, I need to right-click the indicator and manually select the second layout once. After that's done, both the global shortcut and the indicator left-click work as expected.


STEPS TO REPRODUCE
1. Log in to Plasma
2. Press the layout switching shortcut (Alt-Shift)

OBSERVED RESULT
The layout is not affected

EXPECTED RESULT
The layout is changed


SOFTWARE/OS VERSIONS
Operating System: openSUSE Leap 15.2
KDE Plasma Version: 5.20.5
KDE Frameworks Version: 5.78.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
I have 2 layouts configured, English and Russian.
In the KWin console (launched from KRunner), I see both of them as available.
When opening the context menu for the first time, I see a separator between English and Russian, which then disappears with the workaround.
Comment 1 Nate Graham 2021-01-12 00:09:03 UTC
Is this with the new layout applet or the old one?
Comment 2 Ilya Bizyaev 2021-01-12 11:19:50 UTC
It's with the old applet, although I think the applet is just an indicator and only serves as a workaround here.
Comment 3 Andrey 2021-01-13 02:04:08 UTC
Could you try it on master?
I had this issue too but can't reproduce any more.
Comment 4 Ilya Bizyaev 2021-01-13 09:52:08 UTC
The tricky bit is that I cannot reproduce it on a fresh user...

But I do not want to get configs updated for Plasma 5.21 on my main user account before the beta, so it seems I cannot test with master until then :)
Comment 5 Ilya Bizyaev 2021-01-31 15:21:58 UTC
So apparently the reason of this breakage was IBus, which first got installed in openSUSE as a dependency of Plasma's Emoji picker, and then continued to be required as a dependency of Zoom.

I removed it now, breaking Zoom's dependency, and the layout switching issue is gone. It is no longer required for the Emoji picker.
Comment 6 Andrey 2021-01-31 20:12:32 UTC
Nice. Can we close this now?