mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-05-19 03:20:21 -07:00
X.A.WindowGo: Add a haddock comment to raiseNextMaybeCustomFocus
This commit is contained in:
parent
0e1cecd135
commit
c51bd739d7
@ -144,6 +144,10 @@ raiseNext = raiseNextMaybe $ return ()
|
|||||||
raiseNextMaybe :: X () -> Query Bool -> X ()
|
raiseNextMaybe :: X () -> Query Bool -> X ()
|
||||||
raiseNextMaybe = raiseNextMaybeCustomFocus W.focusWindow
|
raiseNextMaybe = raiseNextMaybeCustomFocus W.focusWindow
|
||||||
|
|
||||||
|
{- | See 'raiseMaybe' and 'raiseNextMaybe'.
|
||||||
|
In addition to all of the options offered by 'raiseNextMaybe'
|
||||||
|
'raiseNextMaybeCustomFocus' allows the user to supply the function that
|
||||||
|
should be used to shift the focus to any window that is found. -}
|
||||||
raiseNextMaybeCustomFocus :: (Window -> WindowSet -> WindowSet) -> X() -> Query Bool -> X()
|
raiseNextMaybeCustomFocus :: (Window -> WindowSet -> WindowSet) -> X() -> Query Bool -> X()
|
||||||
raiseNextMaybeCustomFocus focusFn f qry = flip (ifWindows qry) f $ \ws -> do
|
raiseNextMaybeCustomFocus focusFn f qry = flip (ifWindows qry) f $ \ws -> do
|
||||||
foc <- withWindowSet $ return . W.peek
|
foc <- withWindowSet $ return . W.peek
|
||||||
|
Loading…
x
Reference in New Issue
Block a user