From d1f30705f1ecca6ecc5c3fd52411c56d8e0f7525 Mon Sep 17 00:00:00 2001 From: Adam Vogt Date: Fri, 4 Sep 2009 03:02:59 +0200 Subject: Remove excess broadcastMessage ReleaseResources from A.Commands Ignore-this: e55e16750bd1ee116760559680495b46 XMonad.Operations.restart tells the layouts to release resources. There's no sense in duplicating it in contrib code anymore. darcs-hash:20090904010259-1499c-85747018852d2b25a752defc956d6b80b1187343.gz --- XMonad/Actions/Commands.hs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'XMonad/Actions/Commands.hs') diff --git a/XMonad/Actions/Commands.hs b/XMonad/Actions/Commands.hs index 7dc7f8d..f513990 100644 --- a/XMonad/Actions/Commands.hs +++ b/XMonad/Actions/Commands.hs @@ -82,14 +82,13 @@ defaultCommands = do wscmds <- workspaceCommands return $ wscmds ++ screenCommands ++ otherCommands where - sr = broadcastMessage ReleaseResources otherCommands = [ ("shrink" , sendMessage Shrink ) , ("expand" , sendMessage Expand ) , ("next-layout" , sendMessage NextLayout ) , ("default-layout" , asks (layoutHook . config) >>= setLayout ) - , ("restart-wm" , sr >> restart "xmonad" True ) - , ("restart-wm-no-resume", sr >> restart "xmonad" False ) + , ("restart-wm" , restart "xmonad" True ) + , ("restart-wm-no-resume", restart "xmonad" False ) , ("xterm" , spawn =<< asks (terminal . config) ) , ("run" , spawn "exe=`dmenu_path | dmenu -b` && exec $exe" ) , ("kill" , kill ) -- cgit v1.2.3