summaryrefslogtreecommitdiffstats
path: root/tv/5pkgs/haskell/xmonad-tv/src/XMonad/Extra.hs
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2021-03-19 09:17:48 +0100
committermakefu <github@syntax-fehler.de>2021-03-19 09:17:48 +0100
commit8c28e9f4170d05e3e9dfb89985ce4f352cd91245 (patch)
tree82407d4e8454b3abfbb8288f8bc6765c64bf036b /tv/5pkgs/haskell/xmonad-tv/src/XMonad/Extra.hs
parent758660945c712b645e755e9101a9fd3d8a325c91 (diff)
parent3bbbc82ae9ab9f0ac737b2ff0b55b50ae9c77b8a (diff)
Merge remote-tracking branch 'lass/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