projects
/
suckless
/
dwm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b8bccb4
)
small fix of fix
author
Anselm R. Garbe
<arg@suckless.org>
Thu, 10 May 2007 11:49:17 +0000
(13:49 +0200)
committer
Anselm R. Garbe
<arg@suckless.org>
Thu, 10 May 2007 11:49:17 +0000
(13:49 +0200)
client.c
patch
|
blob
|
history
diff --git
a/client.c
b/client.c
index 64da34374a1ec0f7b41472b1b1f3f704f570f7fe..3db14f5c945752e6f615eccfb44b28aa6dbf0416 100644
(file)
--- 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)