mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-05-19 11:30:22 -07:00
Remove excess broadcastMessage ReleaseResources from A.Commands
XMonad.Operations.restart tells the layouts to release resources. There's no sense in duplicating it in contrib code anymore.
This commit is contained in:
parent
a9cb7bf67a
commit
cbd978c3b5
@ -82,14 +82,13 @@ defaultCommands = do
|
|||||||
wscmds <- workspaceCommands
|
wscmds <- workspaceCommands
|
||||||
return $ wscmds ++ screenCommands ++ otherCommands
|
return $ wscmds ++ screenCommands ++ otherCommands
|
||||||
where
|
where
|
||||||
sr = broadcastMessage ReleaseResources
|
|
||||||
otherCommands =
|
otherCommands =
|
||||||
[ ("shrink" , sendMessage Shrink )
|
[ ("shrink" , sendMessage Shrink )
|
||||||
, ("expand" , sendMessage Expand )
|
, ("expand" , sendMessage Expand )
|
||||||
, ("next-layout" , sendMessage NextLayout )
|
, ("next-layout" , sendMessage NextLayout )
|
||||||
, ("default-layout" , asks (layoutHook . config) >>= setLayout )
|
, ("default-layout" , asks (layoutHook . config) >>= setLayout )
|
||||||
, ("restart-wm" , sr >> restart "xmonad" True )
|
, ("restart-wm" , restart "xmonad" True )
|
||||||
, ("restart-wm-no-resume", sr >> restart "xmonad" False )
|
, ("restart-wm-no-resume", restart "xmonad" False )
|
||||||
, ("xterm" , spawn =<< asks (terminal . config) )
|
, ("xterm" , spawn =<< asks (terminal . config) )
|
||||||
, ("run" , spawn "exe=`dmenu_path | dmenu -b` && exec $exe" )
|
, ("run" , spawn "exe=`dmenu_path | dmenu -b` && exec $exe" )
|
||||||
, ("kill" , kill )
|
, ("kill" , kill )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user