summaryrefslogtreecommitdiffstats
path: root/names.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2012-03-09 21:11:28 +0000
committerNicholas Marriott <nicm@openbsd.org>2012-03-09 21:11:28 +0000
commitbe63fef8728a3948ae58eb89ed0873a2327de25c (patch)
tree6207c86abb399b357f6acaaf26f70118715d4615 /names.c
parentac9ebc29a26c1e7c19e1c9a58fef42bfc75d2100 (diff)
Add a missing call to window_set_name, from George Nachman.
Diffstat (limited to 'names.c')
-rw-r--r--names.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/names.c b/names.c
index 0bdcbe3e..a1fc1ba3 100644
--- a/names.c
+++ b/names.c
@@ -78,13 +78,11 @@ window_name_callback(unused int fd, unused short events, void *data)
wname = name;
}
- if (strcmp(wname, w->name) == 0)
- xfree(wname);
- else {
- xfree(w->name);
- w->name = wname;
+ if (strcmp(wname, w->name)) {
+ window_set_name(w, wname);
server_status_window(w);
}
+ xfree(wname);
}
char *