diff options
author | Spencer Janssen <sjanssen@cse.unl.edu> | 2007-05-21 21:07:49 +0200 |
---|---|---|
committer | Spencer Janssen <sjanssen@cse.unl.edu> | 2007-05-21 21:07:49 +0200 |
commit | 4672491cdad0680c59451a4c15e38270cf0f472c (patch) | |
tree | cc9f33c73efeca353d6095bf1900a42cd8d1c869 | |
parent | 559ac9e9d5c61c08317cb96cfadb07206c663855 (diff) | |
download | metatile-4672491cdad0680c59451a4c15e38270cf0f472c.tar metatile-4672491cdad0680c59451a4c15e38270cf0f472c.zip |
Put restart in the X monad
darcs-hash:20070521190749-a5988-1c95a0491806b06a32e7fe8bd6bcac31ebc7ad6b
-rw-r--r-- | Config.hs | 2 | ||||
-rw-r--r-- | XMonad.hs | 4 |
2 files changed, 3 insertions, 3 deletions
@@ -169,7 +169,7 @@ keys = M.fromList $ , ((modMask .|. shiftMask, xK_c ), kill) , ((modMask .|. shiftMask, xK_q ), io $ exitWith ExitSuccess) - , ((modMask .|. shiftMask .|. controlMask, xK_q ), io restart) + , ((modMask .|. shiftMask .|. controlMask, xK_q ), restart) -- Cycle the current tiling order , ((modMask, xK_Return), swap) @@ -143,8 +143,8 @@ spawn x = io $ do -- | Restart xmonad by exec()'ing self. This doesn't save state and xmonad has -- to be in PATH for this to work. -restart :: IO () -restart = do +restart :: X () +restart = io $ do prog <- getProgName prog_path <- findExecutable prog case prog_path of |