https://bugs.kde.org/show_bug.cgi?id=467992

            Bug ID: 467992
           Summary: Wrong keyboard layout switch hotkey behavior for more
                    than two layouts and per window layout policy
    Classification: Plasma
           Product: plasmashell
           Version: 5.27.3
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: Keyboard Layout
          Assignee: plasma-b...@kde.org
          Reporter: lashk...@landau.ac.ru
                CC: butir...@gmail.com
  Target Milestone: 1.0

I set four layouts (English(default), Russian, Hebrew, Yiddish), and set two
`often used' layouts (Engish, Russian), so that my default layout switch key
switches between two layouts. Besides, I set separate hotkeys for all four
layouts (English: Meta+1, Russia: Meta+2, Hebrew: Meta+3, Yiddish: Meta+4). My
layouts are set on the per window basis. When I change the focus of the
windows, the order of the hotkeys switch.

For example. Let I have two windows: Window1 and Window2 and first switch to
Russian in Window1 and then to Hebrew in Window2. Then I change the focus from
Window2 to Window1. Then in Window1 the hotkey Meta+3 sets Russian and Meta+2
sets Hebrew. This continues till I change focus back to Window2 and set Russian
there.

STEPS TO REPRODUCE
1. Set several languages >=3: L1, L2, L3,...
2. Set layout cycle (`often used layouts') say to 2.
3. Set per window layout policy.
4. Set hotkey K1 to L1, K2 to L2,...
4. Open two windows of any applications: W1 and W2.
5. Set L2 in W1 with K2 or default layout switch key.
6. Change focus to W2 and set L3 in W2 with K3.
7. Change focus to W1 and try to switch layouts.
OBSERVED RESULT
The key K2 switches to L3 and K3 to L2 in W1.

EXPECTED RESULT
The key K2 switches to L2 and K3 to L3 in W1.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: OpenSUSE 15.4
KDE Plasma Version: 5.27.3 from
http://download.opensuse.org/repositories/KDE:/Frameworks5/openSUSE_Leap_15.4/
KDE Frameworks Version: 5.104.0
Qt Version: 5.15.8 from
http://download.opensuse.org/repositories/KDE:/Qt5/openSUSE_Leap_15.4/

ADDITIONAL INFORMATION

My ~/.config/kxkbrc looks like:

[$Version]
update_info=kxkb.upd:remove-empty-lists,kxkb.upd:add-back-resetoptions,kxkb_variants.upd:split-variants

[Layout]
DisplayNames=,,,
LayoutList=us,ru,il,yi
LayoutLoopCount=2
Model=asus_laptop
Options=grp:rctrl_toggle,lv3:ralt_switch_multikey
ResetOldOptions=true
ShowFlag=true
ShowLabel=false
ShowLayoutIndicator=true
ShowSingle=false
Use=true
VariantList=intl-unicode,ru_local,lyx,israeli

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to