From 2d17c2c145fcc1a9ffd011c5e3292147de167a3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9ana=20=E6=B1=9F?= Date: Wed, 7 Jan 2026 16:03:57 +0100 Subject: [PATCH] vanadium/xmonad: fix off by one if condition --- nix/configurations/vanadium/home/xmonad/xmonad.hs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nix/configurations/vanadium/home/xmonad/xmonad.hs b/nix/configurations/vanadium/home/xmonad/xmonad.hs index 48e9dabf..f9cbd2bc 100644 --- a/nix/configurations/vanadium/home/xmonad/xmonad.hs +++ b/nix/configurations/vanadium/home/xmonad/xmonad.hs @@ -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