summaryrefslogtreecommitdiffhomepage
path: root/src/XUtil.hsc
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2015-03-20 02:27:57 +0100
committerjao <jao@gnu.org>2015-03-20 02:27:57 +0100
commit90e6cd0407313858daef2eb6ecfd5cd04a2a72a8 (patch)
tree120b7fd7985217231615ce02a9f9391bc2d1baf3 /src/XUtil.hsc
parentbb406692011a78cb15414ec58e21487e927a597a (diff)
downloadxmobar-90e6cd0407313858daef2eb6ecfd5cd04a2a72a8.tar.gz
xmobar-90e6cd0407313858daef2eb6ecfd5cd04a2a72a8.tar.bz2
Fixes for vertical alignment and border drawing
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 5d177c5..914ebdd 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 + 1) (xglyphinfo_xOff gi) (a + d)
- drawXftString' draw fc' fonts (toInteger x) (toInteger y) s
+ drawXftRect draw bc' x (y - a) (xglyphinfo_xOff gi) (a + d + 1)
+ drawXftString' draw fc' fonts (toInteger x) (toInteger (y - 1)) s
#endif