[XMonad] Eliminate case statement
This commit is contained in:
parent
31d039b0b2
commit
1065ee6937
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user