diff options
| author | Aiden Gall <aiden@aidengall.xyz> | 2024-04-05 15:09:59 +0100 |
|---|---|---|
| committer | Aiden Gall <aiden@aidengall.xyz> | 2024-04-05 15:09:59 +0100 |
| commit | 9d8cc9f05e1cd2bb2d324bb57c38dba3236141b7 (patch) | |
| tree | c70ee7fd3924ee48c3512988f585072aa01c0766 /x.c | |
| parent | c7ed1f4f4b40b2267fb97d879d0a2525b7e5cd66 (diff) | |
| parent | d63b9eb90245926b531bd54b1d591adb96613e70 (diff) | |
merge upstream
Diffstat (limited to 'x.c')
| -rw-r--r-- | x.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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; |
