wayfire icon indicating copy to clipboard operation
wayfire copied to clipboard

View stacking is broken in switcher plugin

Open marcusbritanicus opened this issue 2 years ago • 2 comments

Describe the bug Currently, we should cycle through all the views to get back to the view which was previously in focus. Ideally, pressing Alt-Tab (or equivalent binding) twice should toggle between the two views on the top of the stack. To access the views below them would require the user to press and hold Alt (or equivalent) and press Tab N number of times.

To Reproduce Steps to reproduce the behavior:

  1. Enable plugin switcher
  2. Open 3-4 windows (Let's call them W1, W2, W3 and W4), W1 on top.
  3. Press Alt-tab once: W2 is in focus.
  4. Press Alt-tab once more: W3 is in focus, but W1 should have been focused.

Expected behavior W3 is in focus, but W1 should have been focused. (Switching behaviour should be similar to fast-switcher.)

Wayfire version 0.7.x, git

marcusbritanicus avatar Jun 27 '22 20:06 marcusbritanicus

I don't know if it's intentional, but I think the meaning of "Next view" and "Previous view" is swapped (at least the behavior is opposite between "switcher" and "fast-switcher"). So you can workaround this by setting the Alt-Tab keybinding to "Previous view" (and Alt-Shift-Tab to "Next view").

dkondor avatar Jul 09 '22 16:07 dkondor

While this, technically, works around it, it misses the benefits of being able to quickly switch between the last-used window with just one button keybinding, offloading mental calculation onto the user to remember which direction they want to go on the stack when just switching between the last window they used.

Currently, this way of dealing with window order messes up Fast Switcher as using Scale then resets the stack order to what Switcher uses so using Fast Switcher immediately afterwards switches to a different window other than the last-used window.

WammKD avatar Jul 28 '22 12:07 WammKD

#1812 fixes this issue.

marcusbritanicus avatar Jul 06 '23 13:07 marcusbritanicus