Move window name changes into wrapper function window_set_name, from

George Nachman.
This commit is contained in:
Nicholas Marriott
2012-02-02 00:10:11 +00:00
parent fdeaa73342
commit 8363d19307
6 changed files with 16 additions and 7 deletions

View File

@ -361,6 +361,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)
{