X.H.RefocusLast: Export withRecentsIn

This exports the `withRecentsIn` function, as it's quite useful when
using X.H.RefocusLast in other modules as a library.

It is already possible (RecentsMap is fully exported) to completely
define this function outside of the module, so we are not exposing any
more internals than we were before.
This commit is contained in:
slotThe
2021-06-22 13:30:43 +02:00
parent 722967cb12
commit 67c9d7fe90

View File

@@ -41,7 +41,9 @@ module XMonad.Hooks.RefocusLast (
RecentWins(..),
RecentsMap(..),
RefocusLastLayoutHook(..),
RefocusLastToggle(..)
RefocusLastToggle(..),
-- * Library functions
withRecentsIn,
) where
import XMonad
@@ -262,7 +264,7 @@ updateRecentsOn tag = withWindowSet $ \ws ->
-- }}}
-- --< Private Utilities >-- {{{
-- --< Utilities >-- {{{
-- | Focuses the first window in the list it can find on the current workspace.
tryFocus :: [Window] -> WindowSet -> WindowSet