expose and document X.L.IndependentScreens.marshallSort

This commit is contained in:
Daniel Wagner 2014-01-28 21:28:44 +00:00
parent df824edf5f
commit 35ed0601f4

View File

@ -25,7 +25,7 @@ module XMonad.Layout.IndependentScreens (
-- * Converting between virtual and physical workspaces -- * Converting between virtual and physical workspaces
-- $converting -- $converting
marshall, unmarshall, unmarshallS, unmarshallW, marshall, unmarshall, unmarshallS, unmarshallW,
marshallWindowSpace, unmarshallWindowSpace marshallWindowSpace, unmarshallWindowSpace, marshallSort
) where ) where
-- for the screen stuff -- for the screen stuff
@ -179,6 +179,7 @@ whenCurrentOn s pp = pp
_ -> ppOutput pp out _ -> ppOutput pp out
} }
-- | If @vSort@ is a function that sorts 'WindowSpace's with virtual names, then @marshallSort s vSort@ is a function which sorts 'WindowSpace's with physical names in an analogous way -- but keeps only the spaces on screen @s@.
marshallSort :: ScreenId -> ([WindowSpace] -> [WindowSpace]) -> ([WindowSpace] -> [WindowSpace]) marshallSort :: ScreenId -> ([WindowSpace] -> [WindowSpace]) -> ([WindowSpace] -> [WindowSpace])
marshallSort s vSort = pScreens . vSort . vScreens where marshallSort s vSort = pScreens . vSort . vScreens where
onScreen ws = unmarshallS (tag ws) == s onScreen ws = unmarshallS (tag ws) == s