Put restart in the X monad

This commit is contained in:
Spencer Janssen
2007-05-21 19:07:49 +00:00
parent 90dd7705a8
commit 3c2ad2509e
2 changed files with 3 additions and 3 deletions

View File

@@ -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)

View File

@@ -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