diff options
Diffstat (limited to '')
| -rw-r--r-- | client.c | 3 |
1 files changed, 1 insertions, 2 deletions
| @@ -365,9 +365,8 @@ updatetitle(Client *c) { | |||
| 365 | XGetWMName(dpy, c->win, &name); | 365 | XGetWMName(dpy, c->win, &name); |
| 366 | if(!name.nitems) | 366 | if(!name.nitems) |
| 367 | return; | 367 | return; |
| 368 | if(name.encoding == XA_STRING) { | 368 | if(name.encoding == XA_STRING) |
| 369 | strncpy(c->name, (char *)name.value, sizeof c->name - 1); | 369 | strncpy(c->name, (char *)name.value, sizeof c->name - 1); |
| 370 | } | ||
| 371 | else { | 370 | else { |
| 372 | if(XmbTextPropertyToTextList(dpy, &name, &list, &n) >= Success | 371 | if(XmbTextPropertyToTextList(dpy, &name, &list, &n) >= Success |
| 373 | && n > 0 && *list) | 372 | && n > 0 && *list) |
