summaryrefslogtreecommitdiffhomepage
path: root/src/XUtil.hsc
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2015-03-18 21:49:43 +0100
committerjao <jao@gnu.org>2015-03-18 21:49:43 +0100
commitc1d26d64926167e8d4b9ba2da181285141b23353 (patch)
tree66f7eec730794f3ae7bbc38b23682e725f337c54 /src/XUtil.hsc
parent17722c7b63ac878aede2ad80aac1267921d9a8dc (diff)
downloadxmobar-c1d26d64926167e8d4b9ba2da181285141b23353.tar.gz
xmobar-c1d26d64926167e8d4b9ba2da181285141b23353.tar.bz2
Fix for background's vertical aligment
Diffstat (limited to 'src/XUtil.hsc')
-rw-r--r--src/XUtil.hsc7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/XUtil.hsc b/src/XUtil.hsc
index 54eb843..b8f6a73 100644
--- a/src/XUtil.hsc
+++ b/src/XUtil.hsc
@@ -184,9 +184,10 @@ 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 + d) + 1) (xglyphinfo_xOff gi) (a + d)
- (drawXftString' draw fc' fonts (toInteger x) (toInteger (y - 2)) s)
+ drawXftRect draw bc'
+ (x + 1 - fi (xglyphinfo_x gi)) (y - a)
+ (xglyphinfo_xOff gi) (a + d)
+ drawXftString' draw fc' fonts (toInteger x) (toInteger y) s
#endif