mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-05-19 03:20:21 -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
|
||||
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 )
|
||||
|
Loading…
x
Reference in New Issue
Block a user