aboutsummaryrefslogtreecommitdiffstats
path: root/XMonad/Layout/Tabbed.hs
diff options
context:
space:
mode:
Diffstat (limited to 'XMonad/Layout/Tabbed.hs')
-rw-r--r--XMonad/Layout/Tabbed.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/XMonad/Layout/Tabbed.hs b/XMonad/Layout/Tabbed.hs
index 1dc6524..e1a45c8 100644
--- a/XMonad/Layout/Tabbed.hs
+++ b/XMonad/Layout/Tabbed.hs
@@ -116,7 +116,7 @@ instance Eq a => DecorationStyle TabbedDecoration a where
where ws = filter (`elem` map fst (filter ((==r) . snd) wrs)) (S.integrate s)
loc i = (wh * fi i) `div` max 1 (fi $ length ws)
wid = maybe (fi x) (\i -> loc (i+1) - loc i) $ w `elemIndex` ws
- nx = maybe x (fi . loc) $ w `elemIndex` ws
+ nx = (x +) $ maybe 0 (fi . loc) $ w `elemIndex` ws
shrink ds (Rectangle _ _ _ dh) (Rectangle x y w h) = case ds of
Tabbed -> Rectangle x (y + fi dh) w (h - dh)
TabbedBottom -> Rectangle x y w (h - dh)