summaryrefslogtreecommitdiffstats
path: root/x.c
diff options
context:
space:
mode:
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 b36fb8c..bd23686 100644
--- a/x.c
+++ b/x.c
@@ -1617,6 +1617,9 @@ xseticontitle(char *p)
1617 XTextProperty prop; 1617 XTextProperty prop;
1618 DEFAULT(p, opt_title); 1618 DEFAULT(p, opt_title);
1619 1619
1620 if (p[0] == '\0')
1621 p = opt_title;
1622
1620 if (Xutf8TextListToTextProperty(xw.dpy, &p, 1, XUTF8StringStyle, 1623 if (Xutf8TextListToTextProperty(xw.dpy, &p, 1, XUTF8StringStyle,
1621 &prop) != Success) 1624 &prop) != Success)
1622 return; 1625 return;
@@ -1631,6 +1634,9 @@ xsettitle(char *p)
1631 XTextProperty prop; 1634 XTextProperty prop;
1632 DEFAULT(p, opt_title); 1635 DEFAULT(p, opt_title);
1633 1636
1637 if (p[0] == '\0')
1638 p = opt_title;
1639
1634 if (Xutf8TextListToTextProperty(xw.dpy, &p, 1, XUTF8StringStyle, 1640 if (Xutf8TextListToTextProperty(xw.dpy, &p, 1, XUTF8StringStyle,
1635 &prop) != Success) 1641 &prop) != Success)
1636 return; 1642 return;