When a window is zombified and automatic-rename is on, append [dead] to the

name.
This commit is contained in:
Nicholas Marriott 2009-10-10 15:23:13 +00:00
parent 6bca92db4d
commit 9ed62eeb91

View File

@ -73,6 +73,12 @@ set_window_names(void)
xfree(name); xfree(name);
} }
if (w->active->fd == -1) {
xasprintf(&name, "%s[dead]", wname);
xfree(wname);
wname = name;
}
if (strcmp(wname, w->name) == 0) if (strcmp(wname, w->name) == 0)
xfree(wname); xfree(wname);
else { else {