diff options
author | terminaldweller <thabogre@gmail.com> | 2022-04-22 05:25:23 +0000 |
---|---|---|
committer | terminaldweller <thabogre@gmail.com> | 2022-04-22 05:25:23 +0000 |
commit | 641062ef0fca969feae3980afd0d22e436a26c41 (patch) | |
tree | 5a882d43a56662f82b805e7943873211c4a5b6a1 /tabbed-0.6-xft.diff | |
parent | Initial commit (diff) | |
download | tabbed-main.tar.gz tabbed-main.zip |
Diffstat (limited to 'tabbed-0.6-xft.diff')
-rw-r--r-- | tabbed-0.6-xft.diff | 19 |
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 |