From: Anselm R. Garbe Date: Thu, 10 May 2007 11:49:17 +0000 (+0200) Subject: small fix of fix X-Git-Url: https://jasonwoof.com/gitweb/?p=dwm.git;a=commitdiff_plain;h=c67dbb28e47b03eca0c7faddcf7c9862c41694b7 small fix of fix --- 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)