From a478488ffbe5dd0ef7fef360bf4d8227c2449d4a Mon Sep 17 00:00:00 2001 From: Spencer Janssen Date: Thu, 1 Nov 2007 21:50:25 +0100 Subject: Get defaultGaps from the current config, not the default one darcs-hash:20071101205025-a5988-78d551974e1c4d8c000fbaa2efd2f4477ee8bfae --- XMonad/DefaultConfig.hs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/XMonad/DefaultConfig.hs b/XMonad/DefaultConfig.hs index 6fc710f..91e0414 100644 --- a/XMonad/DefaultConfig.hs +++ b/XMonad/DefaultConfig.hs @@ -189,7 +189,8 @@ keys = M.fromList $ , ((modMask , xK_period), sendMessage (IncMasterN (-1))) -- %! Deincrement the number of windows in the master area -- toggle the status bar gap - , ((modMask , xK_b ), modifyGap (\i n -> let x = (defaultGaps defaultConfig ++ repeat (0,0,0,0)) !! i in if n == x then (0,0,0,0) else x)) -- %! Toggle the status bar gap + , ((modMask , xK_b ), do gs <- asks (defaultGaps . config) + modifyGap (\i n -> let x = (gs ++ repeat (0,0,0,0)) !! i in if n == x then (0,0,0,0) else x)) -- %! Toggle the status bar gap -- quit, or restart , ((modMask .|. shiftMask, xK_q ), io (exitWith ExitSuccess)) -- %! Quit xmonad -- cgit v1.2.3