vanadium/xmonad: fix off by one if condition

This commit is contained in:
Primrose 2026-01-07 16:03:57 +01:00
parent 245da500a0
commit 2d17c2c145
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA

View file

@ -220,9 +220,9 @@ setMasterNEventHandleHook ev =
$ filter (flip M.notMember (W.floating ws))
$ W.integrate' s
if count >= 7 then sendMessage (SetMasterN 4)
else if count >= 5 then sendMessage (SetMasterN 3)
else if count >= 3 then sendMessage (SetMasterN 2)
if count > 7 then sendMessage (SetMasterN 4)
else if count > 5 then sendMessage (SetMasterN 3)
else if count > 3 then sendMessage (SetMasterN 2)
else sendMessage (SetMasterN 1)
in do
case ev of