[XMonad] Eliminate case statement

This commit is contained in:
Ivan Malison 2016-11-25 17:28:01 -08:00
parent 31d039b0b2
commit 1065ee6937
No known key found for this signature in database
GPG Key ID: 62530EFBE99DC2F8

View File

@ -359,10 +359,8 @@ maybeUnminimizeClassAfter = (>> maximizeSameClassesInWorkspace)
restoreAllMinimized = restoreFocus $ restoreAllMinimized = restoreFocus $
withLastMinimized $ \w -> maximizeWindow w >> restoreAllMinimized withLastMinimized $ \w -> maximizeWindow w >> restoreAllMinimized
restoreOrMinimizeOtherClasses = withLastMinimized' $ \mw -> restoreOrMinimizeOtherClasses = withLastMinimized' $
case mw of maybe restoreAllMinimized (`seq` minimizeOtherClassesInWorkspace)
Just _ -> restoreAllMinimized
Nothing -> minimizeOtherClassesInWorkspace
-- Window switching -- Window switching