From 18ae198b6d60897e9d8a61a096be3e834e87d62b Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Thu, 1 Dec 2016 16:23:30 -0800 Subject: [PATCH] [XMonad] Use docks function instead of manually adding dock hooks This fixes the issue where docks were not handled on xmonad restart. --- dotfiles/xmonad/xmonad.hs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/dotfiles/xmonad/xmonad.hs b/dotfiles/xmonad/xmonad.hs index fae2b331..0e8dd6e0 100644 --- a/dotfiles/xmonad/xmonad.hs +++ b/dotfiles/xmonad/xmonad.hs @@ -57,17 +57,16 @@ myGetWorkspaceNameFromTag getWSName tag = printf "%s: %s " tag (fromMaybe "(Empty)" (getWSName tag)) main = - xmonad $ def + xmonad . docks $ def { modMask = mod4Mask , terminal = "urxvt" - , manageHook = manageDocks <+> myManageHook <+> manageHook def + , manageHook = myManageHook <+> manageHook def , layoutHook = myLayoutHook , logHook = toggleFadeInactiveLogHook 0.9 +++ ewmhWorkspaceNamesLogHook' myGetWorkspaceNameFromTag +++ (myGetWorkspaceNameFromTag <$> getWorkspaceNames' >>= pagerHintsLogHookCustom) - , handleEventHook = - docksEventHook <+> fullscreenEventHook +++ + , handleEventHook = fullscreenEventHook +++ ewmhDesktopsEventHook +++ pagerHintsEventHook +++ followIfNoMagicFocus +++ minimizeEventHook , startupHook = myStartup +++ ewmhWorkspaceNamesLogHook