aboutsummaryrefslogtreecommitdiffstats
path: root/Tabbed.hs
diff options
context:
space:
mode:
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