aboutsummaryrefslogtreecommitdiffstats
path: root/XMonad/Layout/DwmStyle.hs
diff options
context:
space:
mode:
Diffstat (limited to 'XMonad/Layout/DwmStyle.hs')
-rw-r--r--XMonad/Layout/DwmStyle.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/XMonad/Layout/DwmStyle.hs b/XMonad/Layout/DwmStyle.hs
index 623db56..448889f 100644
--- a/XMonad/Layout/DwmStyle.hs
+++ b/XMonad/Layout/DwmStyle.hs
@@ -62,7 +62,7 @@ data DwmStyle a = Dwm deriving (Show, Read)
instance Eq a => DecorationStyle DwmStyle a where
describeDeco _ = "DwmStyle"
shrink _ _ r = r
- pureDecoration _ wh ht _ (Stack fw _ _) _ (win,Rectangle x y wid _) =
- if win == fw then Nothing else Just $ Rectangle (fi nx) y nwh (fi ht)
+ pureDecoration _ wh ht _ s@(Stack fw _ _) _ (w,Rectangle x y wid _) =
+ if w == fw || not (isInStack s w) then Nothing else Just $ Rectangle (fi nx) y nwh (fi ht)
where nwh = min wid $ fi wh
nx = fi x + wid - nwh