summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--x.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/x.c b/x.c
index 90edc8d..1e81761 100644
--- a/x.c
+++ b/x.c
@@ -1746,6 +1746,9 @@ xseticontitle(char *p)
XTextProperty prop;
DEFAULT(p, opt_title);
+ if (p[0] == '\0')
+ p = opt_title;
+
if (Xutf8TextListToTextProperty(xw.dpy, &p, 1, XUTF8StringStyle,
&prop) != Success)
return;
@@ -1760,6 +1763,9 @@ xsettitle(char *p)
XTextProperty prop;
DEFAULT(p, opt_title);
+ if (p[0] == '\0')
+ p = opt_title;
+
if (Xutf8TextListToTextProperty(xw.dpy, &p, 1, XUTF8StringStyle,
&prop) != Success)
return;