aboutsummaryrefslogtreecommitdiff
path: root/src/Rahm/Desktop/Workspaces.hs
diff options
context:
space:
mode:
authorJosh Rahm <joshuarahm@gmail.com>2022-04-16 11:35:09 -0600
committerJosh Rahm <joshuarahm@gmail.com>2022-04-16 11:35:09 -0600
commit4114631cb78f5c21a70ae5fe697b8230e965c1fb (patch)
tree6baf9a882b5df229d648df3ecb956ca5313bc791 /src/Rahm/Desktop/Workspaces.hs
parente7d0c65ef807cf6d595273a764ec95d17c8708b5 (diff)
parent65456557536f7886ae079fa2b980a1ef7f0619c0 (diff)
downloadrde-4114631cb78f5c21a70ae5fe697b8230e965c1fb.tar.gz
rde-4114631cb78f5c21a70ae5fe697b8230e965c1fb.tar.bz2
rde-4114631cb78f5c21a70ae5fe697b8230e965c1fb.zip
Merge branch 'v017' of josher.dev:rde into v017
Diffstat (limited to 'src/Rahm/Desktop/Workspaces.hs')
-rw-r--r--src/Rahm/Desktop/Workspaces.hs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Rahm/Desktop/Workspaces.hs b/src/Rahm/Desktop/Workspaces.hs
index 1349fea..de481ac 100644
--- a/src/Rahm/Desktop/Workspaces.hs
+++ b/src/Rahm/Desktop/Workspaces.hs
@@ -114,7 +114,7 @@ swapWorkspace toWorkspace = do
| otherwise = ws
adjacentWorkspaceNotVisible :: Selector -> WorkspaceId -> X WorkspaceId
-adjacentWorkspaceNotVisible (Selector selector) from =
+adjacentWorkspaceNotVisible (Selector selector) from =
withWindowSet $ \ss ->
let tags = sort $
W.tag . snd <$> filter (\x -> fst x /= Visible) (
@@ -123,7 +123,7 @@ adjacentWorkspaceNotVisible (Selector selector) from =
return $ fromMaybe from $ selector (==from) tags
adjacentWorkspace :: Selector -> WorkspaceId -> X WorkspaceId
-adjacentWorkspace (Selector selector) from =
+adjacentWorkspace (Selector selector) from =
withWindowSet $ \ss ->
let tags = sort $ W.tag . snd <$> getPopulatedWorkspaces ss
in
@@ -154,4 +154,4 @@ workspaceWithWindow wid = withWindowSet $ \(W.StackSet c v h _) ->
W.tag <$>
find (\(W.Workspace _ _ stack) -> wid `elem` W.integrate' stack)
(map W.workspace (c : v) ++ h)
-
+