mirror of
https://github.com/xmonad/xmonad.git
synced 2025-07-31 12:11:53 -07:00
Parameterise StackSet by two index types, rather than breaking abstraction
This commit is contained in:
@@ -240,7 +240,7 @@ kill = withDisplay $ \d -> do
|
||||
else io (killClient d w) >> return ()
|
||||
|
||||
-- | tag. Move a window to a new workspace, 0 indexed.
|
||||
tag :: W.WorkspaceId -> X ()
|
||||
tag :: WorkspaceId -> X ()
|
||||
tag n = do
|
||||
ws <- gets workspace
|
||||
let m = W.current ws -- :: WorkspaceId
|
||||
@@ -250,7 +250,7 @@ tag n = do
|
||||
windows $ W.shift n
|
||||
|
||||
-- | view. Change the current workspace to workspace at offset n (0 indexed).
|
||||
view :: W.WorkspaceId -> X ()
|
||||
view :: WorkspaceId -> X ()
|
||||
view n = do
|
||||
ws <- gets workspace
|
||||
let m = W.current ws
|
||||
@@ -263,7 +263,7 @@ view n = do
|
||||
setTopFocus
|
||||
|
||||
-- | 'screenWorkspace sc' returns the workspace number viewed by 'sc'.
|
||||
screenWorkspace :: W.ScreenId -> X W.WorkspaceId
|
||||
screenWorkspace :: ScreenId -> X WorkspaceId
|
||||
screenWorkspace sc = fmap (fromMaybe 0 . W.workspace sc) (gets workspace)
|
||||
|
||||
-- | True if window is under management by us
|
||||
|
Reference in New Issue
Block a user