aboutsummaryrefslogtreecommitdiffstats
path: root/XMonad/Layout/DwmStyle.hs
diff options
context:
space:
mode:
authorAndrea Rossato <andrea.rossato@unibz.it>2008-02-18 14:13:20 +0100
committerAndrea Rossato <andrea.rossato@unibz.it>2008-02-18 14:13:20 +0100
commit7c7884a5d86cffaf306fde89d9d4d3a85d160d5c (patch)
tree42c84c73aadcec349f9aab86e1c0dd033c846d91 /XMonad/Layout/DwmStyle.hs
parent8c595555ce9d1f1d2bfce4bf0ff441d75b79b1c0 (diff)
downloadXMonadContrib-7c7884a5d86cffaf306fde89d9d4d3a85d160d5c.tar.gz
XMonadContrib-7c7884a5d86cffaf306fde89d9d4d3a85d160d5c.tar.xz
XMonadContrib-7c7884a5d86cffaf306fde89d9d4d3a85d160d5c.zip
add Eq superclass to DecorationStyle and change styles in order not to decorate non managed windows
darcs-hash:20080218131320-32816-44ecfbd0dca9eb353a569898deefebef9f7088ed.gz
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