Sync OpenBSD patchset 375:

When a window is zombified and automatic-rename is on, append [dead] to the
name.
This commit is contained in:
Tiago Cunha 2009-10-12 00:03:04 +00:00
parent 3e93bdf31b
commit bc90c7c199
1 changed files with 7 additions and 1 deletions

View File

@ -1,4 +1,4 @@
/* $Id: names.c,v 1.16 2009-09-20 22:11:27 tcunha Exp $ */
/* $Id: names.c,v 1.17 2009-10-12 00:03:04 tcunha Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
@ -73,6 +73,12 @@ set_window_names(void)
xfree(name);
}
if (w->active->fd == -1) {
xasprintf(&name, "%s[dead]", wname);
xfree(wname);
wname = name;
}
if (strcmp(wname, w->name) == 0)
xfree(wname);
else {