summaryrefslogtreecommitdiffhomepage
path: root/src/XUtil.hsc
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2015-04-13 03:33:54 +0200
committerjao <jao@gnu.org>2015-04-13 03:33:54 +0200
commit7b891200c17a501ed1641a1300164785f5898a22 (patch)
tree884094c9ed5f78f9816f552c7382e502373f3906 /src/XUtil.hsc
parentc57003b97a203fbd9b4299522cdf9ff0d61912d3 (diff)
downloadxmobar-7b891200c17a501ed1641a1300164785f5898a22.tar.gz
xmobar-7b891200c17a501ed1641a1300164785f5898a22.tar.bz2
A bit more experimentation with alignment
Diffstat (limited to 'src/XUtil.hsc')
-rw-r--r--src/XUtil.hsc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/XUtil.hsc b/src/XUtil.hsc
index 914ebdd..41ba087 100644
--- a/src/XUtil.hsc
+++ b/src/XUtil.hsc
@@ -184,8 +184,8 @@ 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 (y - a) (xglyphinfo_xOff gi) (a + d + 1)
- drawXftString' draw fc' fonts (toInteger x) (toInteger (y - 1)) s
+ drawXftRect draw bc' x (y - a + 1) (xglyphinfo_xOff gi) (a + d + 1)
+ drawXftString' draw fc' fonts (toInteger x) (toInteger y) s
#endif