summaryrefslogtreecommitdiffhomepage
path: root/src/XUtil.hsc
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/XUtil.hsc
parentc1d26d64926167e8d4b9ba2da181285141b23353 (diff)
downloadxmobar-bb406692011a78cb15414ec58e21487e927a597a.tar.gz
xmobar-bb406692011a78cb15414ec58e21487e927a597a.tar.bz2
More alignment fixes
Diffstat (limited to 'src/XUtil.hsc')
-rw-r--r--src/XUtil.hsc4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/XUtil.hsc b/src/XUtil.hsc
index b8f6a73..5d177c5 100644
--- a/src/XUtil.hsc
+++ b/src/XUtil.hsc
@@ -184,9 +184,7 @@ printString dpy drw fs@(Xft fonts) _ fc bc x y s al = do
when (al == 255) $ do
(a,d) <- textExtents fs s
gi <- xftTxtExtents' dpy fonts s
- drawXftRect draw bc'
- (x + 1 - fi (xglyphinfo_x gi)) (y - a)
- (xglyphinfo_xOff gi) (a + d)
+ drawXftRect draw bc' x (y - a + 1) (xglyphinfo_xOff gi) (a + d)
drawXftString' draw fc' fonts (toInteger x) (toInteger y) s
#endif