summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2015-05-20 02:11:32 +0200
committerjao <jao@gnu.org>2015-05-20 02:11:32 +0200
commit1b4660954574fa06ffe89b2be3865f6e9072308f (patch)
treef517757140342c113f5319df3d4d4dbefc92014f /src
parentfbffac468012ebf8aeb9ead3c2d45ef6e4a783ac (diff)
downloadxmobar-1b4660954574fa06ffe89b2be3865f6e9072308f.tar.gz
xmobar-1b4660954574fa06ffe89b2be3865f6e9072308f.tar.bz2
Umpteenth attempt at background horizontal alignment
Diffstat (limited to 'src')
-rw-r--r--src/XUtil.hsc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/XUtil.hsc b/src/XUtil.hsc
index e37d419..e63c9cb 100644
--- a/src/XUtil.hsc
+++ b/src/XUtil.hsc
@@ -190,7 +190,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) (y - a) (2 + xglyphinfo_xOff gi) (a + d + 2)
+ drawXftRect draw bc' x (y - a) (1 + xglyphinfo_xOff gi) (a + d + 2)
drawXftString' draw fc' fonts (toInteger x) (toInteger y) s
#endif