aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDon Stewart <dons@cse.unsw.edu.au>2007-06-21 05:36:13 +0200
committerDon Stewart <dons@cse.unsw.edu.au>2007-06-21 05:36:13 +0200
commitfb09d71524ab2349bb235ac6fd655bd290b614cd (patch)
tree2d0deb3b04f2df0807b1b77c43e95e19bbbf75ea
parent9ce9a7add56f3ffda5f3f52edabc5e647712ff00 (diff)
downloadxmonad-fb09d71524ab2349bb235ac6fd655bd290b614cd.tar.gz
xmonad-fb09d71524ab2349bb235ac6fd655bd290b614cd.tar.xz
xmonad-fb09d71524ab2349bb235ac6fd655bd290b614cd.zip
minor tweaks, ideas from joachim.fasting@
darcs-hash:20070621033613-9c5c1-51e25d524c5a54aafbab14f55b3b155c558195d2.gz
-rw-r--r--Operations.hs2
-rw-r--r--XMonad.hs2
2 files changed, 2 insertions, 2 deletions
diff --git a/Operations.hs b/Operations.hs
index a40b2a0..cd20c47 100644
--- a/Operations.hs
+++ b/Operations.hs
@@ -99,7 +99,7 @@ view = windows . W.view
modifyGap :: (Int -> (Int,Int,Int,Int) -> (Int,Int,Int,Int)) -> X ()
modifyGap f = do
XState { windowset = ws, statusGaps = gaps } <- get
- let n = fromIntegral $ W.screen (W.current ws)
+ let n = fromIntegral . W.screen $ W.current ws
(a,i:b) = splitAt n gaps
modify $ \s -> s { statusGaps = a ++ f n i : b }
refresh
diff --git a/XMonad.hs b/XMonad.hs
index 6242b40..7914782 100644
--- a/XMonad.hs
+++ b/XMonad.hs
@@ -182,7 +182,7 @@ spawn x = io $ do
-- current window state.
restart :: Maybe String -> Bool -> X ()
restart mprog resume = do
- prog <- maybe (io $ getProgName) return mprog
+ prog <- maybe (io getProgName) return mprog
args <- if resume then gets (("--resume":) . return . show . windowset) else return []
catchIO (executeFile prog True args Nothing)