Draft: Fix: per-layout hotkey changes in window policy (2)
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.
This is the second version to fix this problem. In this version we recalculate the target index for the individual layout shortcuts each time the layout changes due to a window change. This is done by introducing a new signal in the LayoutMemory class.
Furthermore the algorithm for recalculation of the indexes has been changed. Now it relies on the actual action name, instead of complex mathematical operations and conditions.