aboutsummaryrefslogtreecommitdiffstats
path: root/XMonad/Layout
diff options
context:
space:
mode:
authorDavid Roundy <droundy@darcs.net>2008-05-16 20:48:55 +0200
committerDavid Roundy <droundy@darcs.net>2008-05-16 20:48:55 +0200
commit89be6d47df80d576fc63c015337169c4e680a569 (patch)
treee69012f82928c629101a53a2081debe81ef731c8 /XMonad/Layout
parentd77d9542fa19fe983c3a139b3f2c095b4d0caeb2 (diff)
downloadXMonadContrib-89be6d47df80d576fc63c015337169c4e680a569.tar.gz
XMonadContrib-89be6d47df80d576fc63c015337169c4e680a569.tar.xz
XMonadContrib-89be6d47df80d576fc63c015337169c4e680a569.zip
fix bug in smartBorders when combined with decorated windows.
darcs-hash:20080516184855-72aca-4766ef523005dde370e5ee0e4fcae456c89db948.gz
Diffstat (limited to 'XMonad/Layout')
-rw-r--r--XMonad/Layout/NoBorders.hs8
1 files changed, 4 insertions, 4 deletions
diff --git a/XMonad/Layout/NoBorders.hs b/XMonad/Layout/NoBorders.hs
index ad55ea8..389cccd 100644
--- a/XMonad/Layout/NoBorders.hs
+++ b/XMonad/Layout/NoBorders.hs
@@ -75,13 +75,13 @@ data SmartBorder a = SmartBorder [a] deriving (Read, Show)
instance LayoutModifier SmartBorder Window where
unhook (SmartBorder s) = asks (borderWidth . config) >>= setBorders s
- redoLayout (SmartBorder s) _ _ wrs = do
+ redoLayout (SmartBorder s) _ st wrs = do
wset <- gets windowset
- let
+ let managedwindows = W.integrate st
screens = filter (nonzerorect . screenRect . W.screenDetail) . W.screens $ wset
ws = tiled ++ floating
- tiled = case wrs of
- [(w, _)] | singleton screens -> [w]
+ tiled = case filter (`elem` managedwindows) $ map fst wrs of
+ [w] | singleton screens -> [w]
_ -> []
floating =
[ w |