With `sticky` window and focus mode `ClickTo` focus on tag change is inconsistent
Describe the bug
When focus_mode is ClickTo and for a window ToggleSticky is issued, the new focused window when switching tags is hard to predict and sometimes no window of the tag is focussed at all.
Expected behavior (optional)
On a tag switch, there are two scenarios with three sensible solutions:
- before the tag switch the sticky window was focused => the focus should remain on the sticky window
- before tag switch any other window of the tag had focus:
- on the new focused tag the last focused window should get focus
- on the new focused tag the
mainwindow should get focus
Steps to reproduce (optional)
- have some windows open on several tags and use
focus_mode: ClickTo - on some arbitrary window
ToggleSticky - switch tag a couple of times
- observe odd focus behaviour
Relevant log output (optional)
No response
OS / Distro
Manjaro, kernel 6.0.0 (nod deemed relevant though)
Additional System Information (optional)
No response
LeftWM Check
Actually appeared during review of #900, don't expect it to be related though.
Along these lines, I see an issue where the FocusWindowUp and FocusWindowDown keyboard commands won't change the focused window after switching back and forth between two tags with a sticky window.
Right, that too.
Is affected by focus_mode: Driven as well.
It seems this issue has been open for some time, has a fix been proposed yet? I am affected by this issue, not highly, but it's annoying to have, idk, a football match floating and sticky and have to always click off the sticky window.
My hope is that this is only a small bug and nothing major.