aboutsummaryrefslogtreecommitdiffstats
path: root/client.c
diff options
context:
space:
mode:
Diffstat (limited to 'client.c')
-rw-r--r--client.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/client.c b/client.c
index 64da343..3db14f5 100644
--- a/client.c
+++ b/client.c
@@ -365,9 +365,8 @@ updatetitle(Client *c) {
XGetWMName(dpy, c->win, &name);
if(!name.nitems)
return;
- if(name.encoding == XA_STRING) {
+ if(name.encoding == XA_STRING)
strncpy(c->name, (char *)name.value, sizeof c->name - 1);
- }
else {
if(XmbTextPropertyToTextList(dpy, &name, &list, &n) >= Success
&& n > 0 && *list)