summaryrefslogtreecommitdiffstats
path: root/tv/5pkgs/haskell/xmonad-tv/src/XMonad
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2021-02-28 21:12:46 +0100
committertv <tv@krebsco.de>2021-02-28 22:58:27 +0100
commit7e158f1c533de5ddc3a3cf77d360338c60ee3724 (patch)
treed53bc41b854a8f55767271685d122d84cbfcd171 /tv/5pkgs/haskell/xmonad-tv/src/XMonad
parent1f7fabbd272581d10576f86e7d6b64570e05518e (diff)
tv xmonad: no layout changes while focusing floats
Diffstat (limited to 'tv/5pkgs/haskell/xmonad-tv/src/XMonad')
-rw-r--r--tv/5pkgs/haskell/xmonad-tv/src/XMonad/Extra.hs14
1 files changed, 14 insertions, 0 deletions
diff --git a/tv/5pkgs/haskell/xmonad-tv/src/XMonad/Extra.hs b/tv/5pkgs/haskell/xmonad-tv/src/XMonad/Extra.hs
new file mode 100644
index 000000000..74222712d
--- /dev/null
+++ b/tv/5pkgs/haskell/xmonad-tv/src/XMonad/Extra.hs
@@ -0,0 +1,14 @@
+module XMonad.Extra where
+
+import XMonad
+import qualified Data.Map as Map
+import qualified XMonad.StackSet as W
+
+
+isFloating :: Window -> WindowSet -> Bool
+isFloating w =
+ Map.member w . W.floating
+
+isFloatingX :: Window -> X Bool
+isFloatingX w =
+ isFloating w <$> gets windowset