[XMonad] Make following window return result of original action
This commit is contained in:
parent
579a4afdc7
commit
3c4de85da9
@ -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"]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user