mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-07-31 20:21:51 -07:00
XMonad.Prelude: add the WindowScreen
type
`WindowScreen` is a type synonym for the specialized `Screen` type, that results from the `WindowSet` definition in XMonad.Core. Having this type defined and exported in a central module saves extension developers from trying to reconstruct it, whenever the general `Screen i l a sid sd` is not suitable. Note: this should be moved to `XMonad.Core` in the next core release.
This commit is contained in:
@@ -148,7 +148,7 @@ withWspOnScreen screenId operation ws = case workspaceOnScreen screenId ws of
|
||||
Nothing -> ws
|
||||
|
||||
-- | Get the workspace that is active on a given screen.
|
||||
screenOnMonitor :: ScreenId -> WindowSet -> Maybe (W.Screen WorkspaceId (Layout Window) Window ScreenId ScreenDetail)
|
||||
screenOnMonitor :: ScreenId -> WindowSet -> Maybe WindowScreen
|
||||
screenOnMonitor screenId ws = find ((screenId ==) . W.screen) (W.current ws : W.visible ws)
|
||||
|
||||
-- | Focus a window, switching workspace on the correct Xinerama screen if neccessary.
|
||||
|
Reference in New Issue
Block a user