aboutsummaryrefslogtreecommitdiffstats
path: root/XMonad.hs
diff options
context:
space:
mode:
Diffstat (limited to 'XMonad.hs')
-rw-r--r--XMonad.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/XMonad.hs b/XMonad.hs
index d1eff38..4d33569 100644
--- a/XMonad.hs
+++ b/XMonad.hs
@@ -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