diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2012-02-02 00:10:11 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2012-02-02 00:10:11 +0000 |
commit | 8363d19307c476f6434a91b79fd962814f6acc1a (patch) | |
tree | fb938ccef2efe05bd74e4569241bf38c255a1afe /window.c | |
parent | fdeaa73342dc92bd8b0119461b6b38e38d495ffc (diff) | |
download | rtmux-8363d19307c476f6434a91b79fd962814f6acc1a.tar.gz rtmux-8363d19307c476f6434a91b79fd962814f6acc1a.tar.bz2 rtmux-8363d19307c476f6434a91b79fd962814f6acc1a.zip |
Move window name changes into wrapper function window_set_name, from
George Nachman.
Diffstat (limited to 'window.c')
-rw-r--r-- | window.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -362,6 +362,14 @@ window_destroy(struct window *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) { w->sx = sx; |