[XMonad] Make following window return result of original action

This commit is contained in:
Ivan Malison 2017-09-09 13:12:52 -07:00
parent 579a4afdc7
commit 3c4de85da9
No known key found for this signature in database
GPG Key ID: 62530EFBE99DC2F8

View File

@ -167,8 +167,9 @@ visibleWindows =
followingWindow action = do followingWindow action = do
orig <- withWindowSet (return . W.peek) orig <- withWindowSet (return . W.peek)
_ <- action res <- action
whenJust orig $ windows . W.focusWindow whenJust orig $ windows . W.focusWindow
return res
myDmenuArgs = ["-dmenu", "-i"] myDmenuArgs = ["-dmenu", "-i"]