Hi all, Adding to this: I've been using this patch, both in dmenu and dwm, for the past week or so and haven't run into any issues. If someone finds any, feel free to send some reproduction steps.
Also noticed some small white-space issue in drw.h, don't think it's worth sending another mail for, so I've attached the patch for it in this mail. - NRK
>From 69c55a03a7efe8f4157388f0ad9d02b7b97c7520 Mon Sep 17 00:00:00 2001 From: NRK <[email protected]> Date: Thu, 17 Mar 2022 18:24:29 +0600 Subject: [PATCH 2/3] small white space fix --- drw.c | 2 +- drw.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drw.c b/drw.c index bbce179..6240865 100644 --- a/drw.c +++ b/drw.c @@ -166,7 +166,7 @@ xfont_free(Fnt *font) free(font); } -Fnt* +Fnt * drw_fontset_create(Drw* drw, const char *fonts[], size_t fontcount) { Fnt *cur, *ret = NULL; diff --git a/drw.h b/drw.h index 4c67419..89872ba 100644 --- a/drw.h +++ b/drw.h @@ -32,8 +32,8 @@ void drw_resize(Drw *drw, unsigned int w, unsigned int h); void drw_free(Drw *drw); /* Fnt abstraction */ -Fnt *drw_fontset_create(Drw* drw, const char *fonts[], size_t fontcount); -void drw_fontset_free(Fnt* set); +Fnt *drw_fontset_create(Drw *drw, const char *fonts[], size_t fontcount); +void drw_fontset_free(Fnt *set); unsigned int drw_fontset_getwidth(Drw *drw, const char *text); void drw_font_getexts(Fnt *font, const char *text, unsigned int len, unsigned int *w, unsigned int *h); -- 2.34.1
