mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-08-02 05:01:51 -07:00
fix bug in smartBorders when combined with decorated windows.
This commit is contained in:
@@ -75,13 +75,13 @@ data SmartBorder a = SmartBorder [a] deriving (Read, Show)
|
|||||||
instance LayoutModifier SmartBorder Window where
|
instance LayoutModifier SmartBorder Window where
|
||||||
unhook (SmartBorder s) = asks (borderWidth . config) >>= setBorders s
|
unhook (SmartBorder s) = asks (borderWidth . config) >>= setBorders s
|
||||||
|
|
||||||
redoLayout (SmartBorder s) _ _ wrs = do
|
redoLayout (SmartBorder s) _ st wrs = do
|
||||||
wset <- gets windowset
|
wset <- gets windowset
|
||||||
let
|
let managedwindows = W.integrate st
|
||||||
screens = filter (nonzerorect . screenRect . W.screenDetail) . W.screens $ wset
|
screens = filter (nonzerorect . screenRect . W.screenDetail) . W.screens $ wset
|
||||||
ws = tiled ++ floating
|
ws = tiled ++ floating
|
||||||
tiled = case wrs of
|
tiled = case filter (`elem` managedwindows) $ map fst wrs of
|
||||||
[(w, _)] | singleton screens -> [w]
|
[w] | singleton screens -> [w]
|
||||||
_ -> []
|
_ -> []
|
||||||
floating =
|
floating =
|
||||||
[ w |
|
[ w |
|
||||||
|
Reference in New Issue
Block a user