Skip to content

Draft: Fix: per-layout hotkey changes in window policy

Mihail Milev requested to merge mmilev/plasma-desktop:fix-bug-467992 into master

BUG: 467992

As stated in the bug report, if we have configured spare layouts and we've chosen per-window layout policy, the hotkeys for changing to individual layouts get mixed up when switching between windows.

I modified the code, so that hotkeys don't get modified when a spare layout is used, but their target indexes stay the same. This involved also changing the behavior of getLayout(), because the applet in the dock displayed the wrong information. Accordingly, also getLayoutsList() was modified.

After these changes, I saw an opportunity to make the LRU functionality work more streamlined, so changed also that.

Merge request reports