From 4302fc4baf726834fc0d08fbc340b6690d1d1c36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Eric=20Janouch?= Date: Fri, 2 Oct 2020 01:50:37 +0200 Subject: [PATCH] Use an empty string rather than "broken" If we fail to retrieve the title, then there is no title, though this doesn't mean the same as "no window", for which we have NULL. --- wdmtg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wdmtg.c b/wdmtg.c index 79c1959..289b48d 100644 --- a/wdmtg.c +++ b/wdmtg.c @@ -303,7 +303,7 @@ x_window_title(xcb_window_t window) GString *title; if (!(title = x_text_property(window, gen.atom_net_wm_name)) && !(title = x_text_property(window, XCB_ATOM_WM_NAME))) - return g_strdup("broken"); + return g_strdup(""); return g_string_free(title, false); }