diff options
-rw-r--r-- | xmonad.hs | 20 |
1 files changed, 10 insertions, 10 deletions
@@ -195,17 +195,17 @@ scratchpads = (customFloating $ W.RationalRect 0.03 0.03 0.94 0.6) ] -hiddenWS :: X (WindowSpace -> Bool) -hiddenWS = do hs <- gets (map W.tag . W.hidden . windowset) - return (\w -> W.tag w `elem` hs) - -notNspWS :: X (WindowSpace -> Bool) -notNspWS = return $ ("NSP" /=) . W.tag - notNspHiddenWS :: X (WindowSpace -> Bool) -notNspHiddenWS = do nn <- notNspWS - hi <- hiddenWS - return (\w -> hi w && nn w) +notNspHiddenWS = do notNsp <- notNspWS + hidden <- hiddenWS + nonEmpty <- nonEmptyWS + return (\w -> hidden w && nonEmpty w && notNsp w) + where + hiddenWS = do hs <- gets (map W.tag . W.hidden . windowset) + return (\w -> W.tag w `elem` hs) + nonEmptyWS = return $ isJust . W.stack + notNspWS = return $ ("NSP" /=) . W.tag + --}}} |