diff --git a/dotfiles/xmonad/xmonad.hs b/dotfiles/xmonad/xmonad.hs index 1acf8ceb..b23db20a 100644 --- a/dotfiles/xmonad/xmonad.hs +++ b/dotfiles/xmonad/xmonad.hs @@ -359,10 +359,8 @@ maybeUnminimizeClassAfter = (>> maximizeSameClassesInWorkspace) restoreAllMinimized = restoreFocus $ withLastMinimized $ \w -> maximizeWindow w >> restoreAllMinimized -restoreOrMinimizeOtherClasses = withLastMinimized' $ \mw -> - case mw of - Just _ -> restoreAllMinimized - Nothing -> minimizeOtherClassesInWorkspace +restoreOrMinimizeOtherClasses = withLastMinimized' $ + maybe restoreAllMinimized (`seq` minimizeOtherClassesInWorkspace) -- Window switching