aboutsummaryrefslogtreecommitdiffstats
path: root/Tabbed.hs
diff options
context:
space:
mode:
authorAndrea Rossato <andrea.rossato@unibz.it>2007-10-07 09:20:18 +0200
committerAndrea Rossato <andrea.rossato@unibz.it>2007-10-07 09:20:18 +0200
commit1a21281b26e3638b5cce74eb5f07c0b8a690ba2a (patch)
treeaca6a340fa44ae4a3b63438e88bb50cc9fbfc44d /Tabbed.hs
parent54d0eefaae568357419f046da4c401eefc4bdbbd (diff)
downloadXMonadContrib-1a21281b26e3638b5cce74eb5f07c0b8a690ba2a.tar.gz
XMonadContrib-1a21281b26e3638b5cce74eb5f07c0b8a690ba2a.tar.xz
XMonadContrib-1a21281b26e3638b5cce74eb5f07c0b8a690ba2a.zip
Tabbed: updated to the last (unannounced) API changes
darcs-hash:20071007072018-32816-e982babac787e3d32c24cb407475fb8c56e89f9e.gz
Diffstat (limited to 'Tabbed.hs')
-rw-r--r--Tabbed.hs6
1 files changed, 5 insertions, 1 deletions
diff --git a/Tabbed.hs b/Tabbed.hs
index a93f7b4..53bc5eb 100644
--- a/Tabbed.hs
+++ b/Tabbed.hs
@@ -150,8 +150,12 @@ handleEvent ishr conf (TabState {tabsWindows = tws, scr = screen, fo
-- expose
| thisw `elem` (map fst tws) && t == expose = do
updateTab ishr conf fs width (thisw, fromJust $ lookup thisw tws)
+ where
+ width = rect_width screen`div` fromIntegral (length tws)
+handleEvent ishr conf (TabState {tabsWindows = tws, scr = screen, fontS = fs })
+ (PropertyEvent {ev_window = thisw })
-- propertyNotify
- | thisw `elem` (map snd tws) && t == propertyNotify = do
+ | thisw `elem` (map snd tws) = do
let tabwin = (fst $ fromJust $ find ((== thisw) . snd) tws, thisw)
updateTab ishr conf fs width tabwin
where