Sync OpenBSD patchset 1024:

Move window name changes into wrapper function window_set_name, from
George Nachman.
This commit is contained in:
Tiago Cunha
2012-02-02 02:00:12 +00:00
parent 509a7e8b73
commit c82e06804e
6 changed files with 16 additions and 7 deletions

View File

@ -358,6 +358,14 @@ window_destroy(struct window *w)
xfree(w);
}
void
window_set_name(struct window *w, const char *new_name)
{
if (w->name != NULL)
xfree(w->name);
w->name = xstrdup(new_name);
}
void
window_resize(struct window *w, u_int sx, u_int sy)
{