commit 9d0dbe66c307bbb227ce746d76b66b647350906b
parent 2c2a2ec38055092f368b44d4affefdfa8df17ff9
Author: Simon Ser <contact@emersion.fr>
Date: Sat, 14 Mar 2026 13:09:52 +0100
common/pango: log on get_text_size()/render_text() format failure
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/common/pango.c b/common/pango.c
@@ -91,6 +91,7 @@ void get_text_size(cairo_t *cairo, const PangoFontDescription *desc, int *width,
char *buf = vformat_str(fmt, args);
va_end(args);
if (buf == NULL) {
+ sway_log(SWAY_ERROR, "Failed to format string");
return;
}
@@ -127,6 +128,7 @@ void render_text(cairo_t *cairo, const PangoFontDescription *desc,
char *buf = vformat_str(fmt, args);
va_end(args);
if (buf == NULL) {
+ sway_log(SWAY_ERROR, "Failed to format string");
return;
}