diff options
Diffstat (limited to 'XMonad')
-rw-r--r-- | XMonad/Layout/NoBorders.hs | 8 |
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 | |