summaryrefslogtreecommitdiff
path: root/x.c
diff options
context:
space:
mode:
authorAiden Gall <aiden@aidengall.xyz>2024-04-05 15:09:59 +0100
committerAiden Gall <aiden@aidengall.xyz>2024-04-05 15:09:59 +0100
commit9d8cc9f05e1cd2bb2d324bb57c38dba3236141b7 (patch)
treec70ee7fd3924ee48c3512988f585072aa01c0766 /x.c
parentc7ed1f4f4b40b2267fb97d879d0a2525b7e5cd66 (diff)
parentd63b9eb90245926b531bd54b1d591adb96613e70 (diff)
merge upstream
Diffstat (limited to 'x.c')
-rw-r--r--x.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/x.c b/x.c
index d2ad828..e524c0a 100644
--- a/x.c
+++ b/x.c
@@ -1643,6 +1643,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;
@@ -1657,6 +1660,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;