leftwm icon indicating copy to clipboard operation
leftwm copied to clipboard

With `sticky` window and focus mode `ClickTo` focus on tag change is inconsistent

Open VuiMuich opened this issue 3 years ago • 4 comments

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 main window should get focus

Steps to reproduce (optional)

  1. have some windows open on several tags and use focus_mode: ClickTo
  2. on some arbitrary window ToggleSticky
  3. switch tag a couple of times
  4. 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.

VuiMuich avatar Oct 17 '22 17:10 VuiMuich

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.

heisencoder avatar Oct 25 '22 02:10 heisencoder

Right, that too.

VuiMuich avatar Oct 25 '22 05:10 VuiMuich

Is affected by focus_mode: Driven as well.

VuiMuich avatar Apr 01 '23 08:04 VuiMuich

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.

maltalef101 avatar Aug 10 '23 00:08 maltalef101