aboutsummaryrefslogtreecommitdiffstats
path: root/Tabbed.hs
diff options
context:
space:
mode:
authorJason Creighton <jcreigh@gmail.com>2007-06-11 04:14:08 +0200
committerJason Creighton <jcreigh@gmail.com>2007-06-11 04:14:08 +0200
commite6eb5e25a70b6be61f489d273ba58b144cd13f31 (patch)
treec688f20f7226fb41807af9d71f2a2f231b98d3e6 /Tabbed.hs
parentaacba82c15c390c980a62a4bebf7b1d0244ecd9a (diff)
downloadXMonadContrib-e6eb5e25a70b6be61f489d273ba58b144cd13f31.tar.gz
XMonadContrib-e6eb5e25a70b6be61f489d273ba58b144cd13f31.tar.xz
XMonadContrib-e6eb5e25a70b6be61f489d273ba58b144cd13f31.zip
redraw decorations on PropertyNotify
newDecoration now takes a Window parameter, which is the window the decoration is "for". If there is a PropertyNotify for that window, the decoration is redrawn. darcs-hash:20070611021408-b9aa7-b01860371ef9e47a06ab4541aee09422c8f19865.gz
Diffstat (limited to 'Tabbed.hs')
-rw-r--r--Tabbed.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tabbed.hs b/Tabbed.hs
index d88077a..c85f224 100644
--- a/Tabbed.hs
+++ b/Tabbed.hs
@@ -29,7 +29,7 @@ dolay sc [w] = return [(w,sc)]
dolay sc@(Rectangle x y wid _) ws =
do let ts = gentabs x y wid (length ws)
tws = zip ts ws
- maketab (t,w) = newDecoration t 1 0x000000 0x777777 (drawtab t w) (focus w)
+ maketab (t,w) = newDecoration w t 1 0x000000 0x777777 (drawtab t w) (focus w)
drawtab r@(Rectangle _ _ wt ht) w d w' gc =
do nw <- getName w
tabcolor <- (maybe 0x888888 (\focusw -> if focusw == w then 0xBBBBBB else 0x888888) . W.peek) `liftM` gets windowset