forked from colonelpanic/dotfiles
[XMonad] Only minimize when action taking when swapping
This commit is contained in:
parent
7a13415fba
commit
b3ebf1f147
@ -288,7 +288,9 @@ swapMinimizeStateAfter action = withFocused $ \originalWindow -> do
|
|||||||
_ <- action
|
_ <- action
|
||||||
restoreFocus $ do
|
restoreFocus $ do
|
||||||
maybeUnminimizeFocused
|
maybeUnminimizeFocused
|
||||||
minimizeWindow originalWindow
|
withFocused $ \newWindow -> do
|
||||||
|
when (newWindow /= originalWindow)
|
||||||
|
$ minimizeWindow originalWindow
|
||||||
|
|
||||||
-- Raise or spawn
|
-- Raise or spawn
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user