aboutsummaryrefslogtreecommitdiffstats
path: root/tabbed-0.6-xft.diff
diff options
context:
space:
mode:
authorterminaldweller <thabogre@gmail.com>2022-04-22 05:25:23 +0000
committerterminaldweller <thabogre@gmail.com>2022-04-22 05:25:23 +0000
commit641062ef0fca969feae3980afd0d22e436a26c41 (patch)
tree5a882d43a56662f82b805e7943873211c4a5b6a1 /tabbed-0.6-xft.diff
parentInitial commit (diff)
downloadtabbed-641062ef0fca969feae3980afd0d22e436a26c41.tar.gz
tabbed-641062ef0fca969feae3980afd0d22e436a26c41.zip
initial commitHEADmain
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