Bug 372459 - screen locker uses layout of the last active window instead of default layout with "Application" switching policy
Summary: screen locker uses layout of the last active window instead of default layout...
Status: REPORTED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_keyboard (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Andriy Rysin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-14 08:29 UTC by Dmitry
Modified: 2025-02-24 11:28 UTC (History)
7 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry 2016-11-14 08:29:34 UTC
1. Go to the Hardware, Input Devices settings, to the layout tab and choose Application switching policy. Also set your first layout to US and your second layout to RU
2. Open some application and switch to RU layout
3. Lock your screen and see the current locale. It will be RU, but should be US.

Having password in Latin character set and entering password to unlock screen always requires you too look at the current layout because else you could enter something totally different.

PS. Switching policy "Windows" works fine

KDE Plasma version: 5.8.3
KDE Frameworks version: 5.27.0
Qt Version: 5.7.0
Comment 1 Vaso 2017-04-20 08:25:27 UTC
Kubuntu 17.04
plasma-desktop      4:5.9.4-0ubuntu1
plasma-framework    5.31.0-0ubuntu1
qt5-default:amd64   5.7.1+dfsg-2ubuntu4~1

Still reproduce.
I guess it's not kcm_keyboard bug, but screenlocker or kwin.
Comment 2 elman 2018-11-20 06:58:06 UTC
Same issue here.

SUMMARY
kscreenlocker should use default keyboard layout when switching policy is set to Application

STEPS TO REPRODUCE
1. Set up primary keyboard layout (e.g en)
2. Add secondary keyboard layout (e.g. sk)
3. Change layout switching policy to Application
4. Use any application and change keyboard layout to sk
5. Lock the screen

OBSERVED RESULT
Lockscreen uses keyboard layout sk

EXPECTED RESULT
Lockscreen should use default keyboard layout en

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Manjaro
KDE Plasma Version: 5.14.3
KDE Frameworks Version: 5.52.0
Qt Version: 5.11.2
Comment 3 Patrick Silva 2019-03-25 17:37:25 UTC
Same bug on my system. Tested with us and pt-br kayboard layouts.

Operating System: Arch Linux 
KDE Plasma Version: 5.15.3
KDE Frameworks Version: 5.56.0
Qt Version: 5.12.2
Comment 4 Vaso 2020-11-14 19:25:09 UTC
The freshest Kubuntu 20.10 and the "cleanest" installation - just boot to live CD, set additional layout, switch to this language, lock the screen, and voila! the language of lockscreen is not English.
Comment 5 Vaso 2020-11-14 19:28:52 UTC
I want to mark that this bug report is very stable, it has consistently one comment per year.