diff options
| author | tv <tv@krebsco.de> | 2021-02-28 21:12:46 +0100 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2021-02-28 22:58:27 +0100 |
| commit | 8da229e5f06325f7660b8b4bd848374379349f4e (patch) | |
| tree | 2adc3398354f662e233e106c61c64ee3895e7998 /tv/5pkgs/haskell/xmonad-tv/src/XMonad | |
| parent | a8d533943881695d667365dd37c740d388897006 (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.hs | 14 |
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 0000000..7422271 --- /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 |
