Directional movement is non intuitive when moving focus across monitors #380
Description
Suppose we have two monitors with two windows each, like this:
+---------------------+ +---------------------+
| +-------+ +-------+ | | +-------+ +-------+ |
| | | | | | | | | | | |
| | A* | | B | | | | C | | D* | |
| | | | | | | | | | | |
| +-------+ +-------+ | | +-------+ +-------+ |
+---------------------+ +---------------------+
| * | | |
---------- ----------
The stars show what is focused. The focus is at left monitor, window A. Window D is not really focused, but it is the focused (default?) window of the right screen, so running bspc monitor --focus east
will focus D. You can replicate this setup just by opening these four windows and clicking first on D, then on A.
In the case shown in the picture, where we have focused A, we can run this bspc command to focus B.
bspc node --focus east
It works fine, yet running it again it will focus D, not C. That's not very intuitive, since the next window at the right of B is C. bspwm is switching focus just to the monitor at the right, not really the window at the right!
Is this the expected behavior? Is there any way to get a more natural directional movement command that does not jump windows when switching monitors?