aboutsummaryrefslogtreecommitdiffstats
path: root/tabbed-0.6-xft.diff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tabbed-0.6-xft.diff19
1 files changed, 19 insertions, 0 deletions
diff --git a/tabbed-0.6-xft.diff b/tabbed-0.6-xft.diff
new file mode 100644
index 0000000..a6ed881
--- /dev/null
+++ b/tabbed-0.6-xft.diff
@@ -0,0 +1,19 @@
+@@ -1040,15 +1000,9 @@ spawn(const Arg *arg) {
+
+ int
+ textnw(const char *text, unsigned int len) {
+- XRectangle r;
+-
+- if(dc.font.set) {
+- XmbTextExtents(dc.font.set, text, len, NULL, &r);
+-
+- return r.width;
+- }
+-
+- return XTextWidth(dc.font.xfont, text, len);
++ XGlyphInfo ext;
++ XftTextExtentsUtf8(dpy, dc.font.xfont, (XftChar8 *) text, len, &ext);
++ return ext.xOff;
+ }
+
+ void