aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJosh Rahm <joshuarahm@gmail.com>2022-11-20 17:49:23 -0700
committerJosh Rahm <joshuarahm@gmail.com>2022-11-20 17:49:23 -0700
commit937252ba0b3375ee20598e364ca170e7c80f1a3a (patch)
tree3f3740c5eeac53248bfd54d9979f3328c4235ce1 /src
parente2478cd63346b267572943c274d75d801ecd3301 (diff)
downloadrde-937252ba0b3375ee20598e364ca170e7c80f1a3a.tar.gz
rde-937252ba0b3375ee20598e364ca170e7c80f1a3a.tar.bz2
rde-937252ba0b3375ee20598e364ca170e7c80f1a3a.zip
Remove border-width change for shifting windows.
Diffstat (limited to 'src')
-rw-r--r--src/Rahm/Desktop/Keys.hs39
1 files changed, 19 insertions, 20 deletions
diff --git a/src/Rahm/Desktop/Keys.hs b/src/Rahm/Desktop/Keys.hs
index b875b9d..eae1c34 100644
--- a/src/Rahm/Desktop/Keys.hs
+++ b/src/Rahm/Desktop/Keys.hs
@@ -477,26 +477,25 @@ keymap = runKeys $ do
locations <- fromMaybe [] <$> runMaybeT readNextLocationSet
let locationWindows = mapMaybe locationWindow locations
- withBorderWidth 4 locationWindows $
- withBorderColor "#00ffff" locationWindows $ do
- runMaybeT_ $ do
- if doSwap
- then do
- otherWindows <-
- lift $ mapMaybe locationWindow . fromMaybe [] <$>
- runMaybeT readNextLocationSet
- lift $ windows $
- W.swapWindows (zip locationWindows otherWindows)
- else do
- workspace <- readNextWorkspace
- mapM_ (lift . moveLocationToWorkspaceFn workspace) locations
-
- lift $ setAlternateWindows locationWindows
- forM_ locations $ \loc ->
- case locationWindow loc of
- Nothing -> return ()
- Just win -> do
- lift $ setAlternateWorkspace win (locationWorkspace loc)
+ withBorderColor "#00ffff" locationWindows $ do
+ runMaybeT_ $ do
+ if doSwap
+ then do
+ otherWindows <-
+ lift $ mapMaybe locationWindow . fromMaybe [] <$>
+ runMaybeT readNextLocationSet
+ lift $ windows $
+ W.swapWindows (zip locationWindows otherWindows)
+ else do
+ workspace <- readNextWorkspace
+ mapM_ (lift . moveLocationToWorkspaceFn workspace) locations
+
+ lift $ setAlternateWindows locationWindows
+ forM_ locations $ \loc ->
+ case locationWindow loc of
+ Nothing -> return ()
+ Just win -> do
+ lift $ setAlternateWorkspace win (locationWorkspace loc)
altMod $ spawnX "sudo -A systemctl suspend && xsecurelock"