summaryrefslogtreecommitdiffstats
path: root/tv/5pkgs/haskell/xmonad-tv/src/XMonad/Extra.hs
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2021-03-07 23:22:35 +0100
committerlassulus <lassulus@lassul.us>2021-03-07 23:22:35 +0100
commitb81eb46c7d6439af7b7cedff9d4f81714f235d15 (patch)
treee62bdd6e86008f8b888a87d8337750e33a46f033 /tv/5pkgs/haskell/xmonad-tv/src/XMonad/Extra.hs
parent6fee4ac9fef8200624e62f5e339abfae860ff497 (diff)
parenta9b82ce4124cb3a3f2e6ee8b087c0d8461bad386 (diff)
Merge remote-tracking branch 'ni/master'
Diffstat (limited to 'tv/5pkgs/haskell/xmonad-tv/src/XMonad/Extra.hs')
-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