diff options
| author | Josh Rahm <joshuarahm@gmail.com> | 2022-04-16 00:20:03 -0600 |
|---|---|---|
| committer | Josh Rahm <joshuarahm@gmail.com> | 2022-10-09 12:19:46 -0600 |
| commit | 1ba923704e7889205f574de1b85f48773ec6aca7 (patch) | |
| tree | 84b248671ab8918a12bb95a3ca62fb1912b934f2 /src/Rahm/Desktop/Workspaces.hs | |
| parent | 9e5d56cfb2508d9f5e58bf681265d0f1070b3f35 (diff) | |
| download | rde-1ba923704e7889205f574de1b85f48773ec6aca7.tar.gz rde-1ba923704e7889205f574de1b85f48773ec6aca7.tar.bz2 rde-1ba923704e7889205f574de1b85f48773ec6aca7.zip | |
fix some hlint warnings
Diffstat (limited to 'src/Rahm/Desktop/Workspaces.hs')
| -rw-r--r-- | src/Rahm/Desktop/Workspaces.hs | 6 |
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) - + |