summaryrefslogtreecommitdiffhomepage
path: root/src/Xmobar.hs
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2015-03-19 01:24:22 +0100
committerjao <jao@gnu.org>2015-03-19 01:24:22 +0100
commitbb406692011a78cb15414ec58e21487e927a597a (patch)
treec6f5ac7e68b61a389e26b704268b88c4b0c1450c /src/Xmobar.hs
parentc1d26d64926167e8d4b9ba2da181285141b23353 (diff)
downloadxmobar-bb406692011a78cb15414ec58e21487e927a597a.tar.gz
xmobar-bb406692011a78cb15414ec58e21487e927a597a.tar.bz2
More alignment fixes
Diffstat (limited to 'src/Xmobar.hs')
-rw-r--r--src/Xmobar.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Xmobar.hs b/src/Xmobar.hs
index c3f32cb..12dc1de 100644
--- a/src/Xmobar.hs
+++ b/src/Xmobar.hs
@@ -324,7 +324,7 @@ verticalOffset ht (Text t) fontst conf
(as,ds) <- io $ textExtents fontst t
let bwidth = borderOffset (border conf) (borderWidth conf)
verticalMargin = fi ht - fi (as + ds) - 2 * fi (abs bwidth)
- return $ fi ht - fi ds - (verticalMargin `div` 2) + bwidth
+ return $ fi ht - fi ds - (verticalMargin `div` 2) + bwidth - 1
verticalOffset ht (Icon _) _ conf
| iconOffset conf > -1 = return $ fi (iconOffset conf)
| otherwise = return $ fi (ht `div` 2) - 1