wayfire
wayfire copied to clipboard
View stacking is broken in switcher plugin
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:
- Enable plugin switcher
- Open 3-4 windows (Let's call them W1, W2, W3 and W4), W1 on top.
- Press Alt-tab once: W2 is in focus.
- 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
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").
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.
#1812 fixes this issue.