aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2020-10-02 01:50:37 +0200
committerPřemysl Eric Janouch <p@janouch.name>2020-10-02 01:50:37 +0200
commit4302fc4baf726834fc0d08fbc340b6690d1d1c36 (patch)
tree60e6dd05a90c5b4edeca92abb7652b75947b83c0
parent764dbaa126f9487d01541034e3b2b647239bdb49 (diff)
downloadwdmtg-4302fc4baf726834fc0d08fbc340b6690d1d1c36.tar.gz
wdmtg-4302fc4baf726834fc0d08fbc340b6690d1d1c36.tar.xz
wdmtg-4302fc4baf726834fc0d08fbc340b6690d1d1c36.zip
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.
-rw-r--r--wdmtg.c2
1 files changed, 1 insertions, 1 deletions
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);
}