Closed Kncklcht closed 2 years ago
The documentation mentions sideNavigation
as "probably the most intuitive strategy for the tiled layer when using XMonad.Layout.Spacing"; does that fix your issue?
main :: IO ()
main = xmonad
. withNavigation2DConfig def{ defaultTiledNavigation = sideNavigation }
$ settings
Oh, I didn't see that - it fixed my problem excellently! Also thanks for the help in integrating it!
Problem Description
I use
XMonad.Actions.Navigation2D
to navigate between windows in anXMonad.Layout.BinarySpacePartition
layout.The problem arises when I have a window bordering an even amount
n
of other windows, so that each of the other windows takes up ann
th of the window border in question.When I add
XMonad.Layout.Spacing
to my configuration, I can't switch from the large window to any of the other windows, since it seems to try to focus an element in the middle of the border (where there is a gap due to the use ofXMonad.Layout.Spacing
).Steps to Reproduce
Run XMonad with the config specified below.
Hit
Super + Shift + Enter
3 times to get the most common scenario matching the problematic situation described above. UseSuper + [Arrow Keys]
to navigate from the most recently opened small window to the large window. UseSuper + [Arrow Keys]
to try to navigate back to either of the small windows.Configuration File
"Proposed Solution"
Switch to the rightmost/topmost window on the other side of the border, instead of the one in the middle (where a gap might be).
"Proposed Solution" because I don't know what effects it would have or whether it's possible at all.