aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgotmor <gotmor@f2baff5b-bf2c-0410-a398-912abdc3d8b2>2009-03-11 03:27:21 +0000
committergotmor <gotmor@f2baff5b-bf2c-0410-a398-912abdc3d8b2>2009-03-11 03:27:21 +0000
commite4a530c5288f7f21c0a40cfefc5f93fe44e3d994 (patch)
tree7241512fcf1f95c54a65cda137550bd7591a45ce
parent8d13ae9bb3fd906c409b469a0903a21a2bc20c32 (diff)
downloaddzen-e4a530c5288f7f21c0a40cfefc5f93fe44e3d994.tar.gz
dzen-e4a530c5288f7f21c0a40cfefc5f93fe44e3d994.zip
fixed ^p() oddities with XFT fonts
git-svn-id: http://dzen.googlecode.com/svn/trunk@257 f2baff5b-bf2c-0410-a398-912abdc3d8b2
-rw-r--r--draw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/draw.c b/draw.c
index 09970c4..c53b9fe 100644
--- a/draw.c
+++ b/draw.c
@@ -80,7 +80,7 @@ textnw(Fnt *font, const char *text, unsigned int len) {
XftTextExtentsUtf8(dzen.dpy, dzen.font.xftfont, (unsigned const char *) text, strlen(text), dzen.font.extents);
if(dzen.font.extents->height > dzen.font.height)
dzen.font.height = dzen.font.extents->height;
- return dzen.font.extents->width;
+ return dzen.font.extents->width + dzen.font.extents->x;
#endif
}