aboutsummaryrefslogtreecommitdiff
path: root/src/Rahm/Desktop/Keys
diff options
context:
space:
mode:
authorJosh Rahm <rahm@google.com>2023-12-05 13:38:30 -0700
committerJosh Rahm <rahm@google.com>2023-12-05 13:38:30 -0700
commit12db6e459520f78cfa07cedbc45015f4090066a1 (patch)
tree1fc4baf37038d7c287a6914aecd1542602bbd73a /src/Rahm/Desktop/Keys
parent3c6488cc3d976fe47dda946b1a5c09828a86f4ec (diff)
downloadrde-12db6e459520f78cfa07cedbc45015f4090066a1.tar.gz
rde-12db6e459520f78cfa07cedbc45015f4090066a1.tar.bz2
rde-12db6e459520f78cfa07cedbc45015f4090066a1.zip
Add ability to tile-drag
Diffstat (limited to 'src/Rahm/Desktop/Keys')
-rw-r--r--src/Rahm/Desktop/Keys/Wml.hs22
1 files changed, 2 insertions, 20 deletions
diff --git a/src/Rahm/Desktop/Keys/Wml.hs b/src/Rahm/Desktop/Keys/Wml.hs
index 7a59cbd..6c46361 100644
--- a/src/Rahm/Desktop/Keys/Wml.hs
+++ b/src/Rahm/Desktop/Keys/Wml.hs
@@ -88,21 +88,6 @@ import Rahm.Desktop.Marking
windowLocation,
)
import qualified Rahm.Desktop.StackSet as W
- ( RationalRect (RationalRect),
- Screen (workspace),
- StackSet (current, floating),
- Workspace (stack, tag),
- allWindows,
- findWindow,
- float,
- focusWindow,
- getLocationWorkspace,
- greedyView,
- integrate',
- screens,
- shiftWin,
- sink,
- )
import Rahm.Desktop.Submap (mapNextStringWithKeysym)
import Rahm.Desktop.Workspaces
( accompaningWorkspace,
@@ -568,10 +553,7 @@ readNextLocationSet =
(_, _, "'") -> (: []) <$> MaybeT (fromX lastLocation)
-- All visible windows.
(_, _, "*") -> mt $ do
- wins <-
- withWindowSet $
- return . concatMap (W.integrate' . W.stack . W.workspace) . W.screens
-
+ wins <- withWindowSet $ return . W.allVisibleWindows
catMaybes <$> mapM (runMaybeT . windowLocation) wins
-- The last referenced windows.
@@ -591,7 +573,7 @@ readNextLocationSet =
-- Windows in a workspace
(_, _, s)
| s == "\t" || s == "@" || s == "\n" ->
- (mt . windowsInWorkspace) =<< readNextWorkspaceName
+ (mt . windowsInWorkspace) =<< readNextWorkspaceName
-- The first window in the next window set.
(_, _, "!") -> (: []) <$> joinMaybe (head <$> readNextLocationSet)
-- The windows except the first in a window set.