X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=client.c;h=3db14f5c945752e6f615eccfb44b28aa6dbf0416;hb=c67dbb28e47b03eca0c7faddcf7c9862c41694b7;hp=64da34374a1ec0f7b41472b1b1f3f704f570f7fe;hpb=b8bccb4ac5222a01ecd6a5f82997ea2ee3b84b8b;p=dwm.git 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)