Bug 300618

Summary: gwenview running in non-KDE session changes keyboard layout when enters `Fullscreen mode`.
Product: [Applications] gwenview Reporter: Coacher <itumaykin+kde>
Component: generalAssignee: Gwenview Bugs <gwenview-bugs-null>
Status: REOPENED ---    
Severity: normal CC: nate
Priority: NOR    
Version First Reported In: Other (add details in bug description)   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Coacher 2012-05-25 18:27:23 UTC
gwenview switches X keyboard layout to default one upon entering `Full screen mode` when running in non-KDE environment. I have `us, ru` definition of layouts in my X config. If I switch to `ru` and then open any image in fullscreen it will be forcedly set to `us`. Contrary, if I change definition to `ru, us` and then switch to `en`, after gwenview's fullscreen view it will be set to `ru`. This happens only in non-KDE enviroments, in KDE there is no such bug. Tested in GNOME2 and XFCE 4.8/4.10. This bug occurs only when gwenview enters `Fullscreen mode`, everything is fine upon leaving it.

Reproducible: Always

Steps to Reproduce:
1. Log in into non-KDE session
2. Change keyboard layout to a non-default one
3. Open any image with gwenview
4. Enable `Fullscreen mode`
5. Layout switched to default one.
Actual Results:  
X layout forcedly changed to default one.

Expected Results:  
Don't touch keyboard parameters at all.

Tested on:
1. Gentoo amd64, KDE 4.8.3, gwenview 2.8.3
2. Archlinux i686, KDE 4.8.3, gwenview 2.8.3
3. OpenSUSE 11.4, KDE 4.6.0, gwenview 2.6.0
4. OpenSUSE 12.1, KDE 4.7.2, gwenview 2.7.2

Non-KDE environments are GNOME2, XFCE 4.8/XFCE 4.10 shipped with distros mentioned above.
Comment 1 Coacher 2012-06-09 07:44:39 UTC
Stiil 100% reproducible in KDE 4.8.4 and gwenview 2.8.4.
Comment 2 Coacher 2012-10-15 09:09:43 UTC
Bug is still 100% reproducible with gwenview 2.9.1. Is there any debug info I should attach or something? Sympthoms described in the first comment.
Comment 3 Coacher 2012-12-10 16:59:18 UTC
I am still experiencing this bug in gwenview 2.9.4 and KDE 4.9.4.
BTW, such a thing doesn't happen for example in okular and its "Presentation mode". Please fix this bug. It makes gwenview totally unusable for me.
Comment 4 Coacher 2013-01-27 19:48:05 UTC
Still seen on KDE 4.9.5 with gwenview 2.9.5
Comment 5 Coacher 2014-06-04 13:35:33 UTC
Ping.

Still reproducible with KDE SC 4.13.1
Comment 6 Nate Graham 2017-09-09 04:20:16 UTC
Can you reproduce this in KF5 versions of Gwenview?
Comment 7 Coacher 2018-06-11 15:42:17 UTC
Yes. Same behaviour with KF5 version.
Comment 8 Nate Graham 2018-06-11 16:01:08 UTC
Thanks for confirming!