[XMonad] Only minimize when action taking when swapping

This commit is contained in:
Ivan Malison 2016-11-13 11:47:51 +00:00
parent 7a13415fba
commit b3ebf1f147
No known key found for this signature in database
GPG Key ID: 62530EFBE99DC2F8

View File

@ -288,7 +288,9 @@ swapMinimizeStateAfter action = withFocused $ \originalWindow -> do
_ <- action
restoreFocus $ do
maybeUnminimizeFocused
minimizeWindow originalWindow
withFocused $ \newWindow -> do
when (newWindow /= originalWindow)
$ minimizeWindow originalWindow
-- Raise or spawn