diff options
author | Tiago Cunha <tcunha@gmx.com> | 2012-02-02 02:00:12 +0000 |
---|---|---|
committer | Tiago Cunha <tcunha@gmx.com> | 2012-02-02 02:00:12 +0000 |
commit | c82e06804e41af6b13b3a75e0268f32fbc4a4210 (patch) | |
tree | 2af7a371354718d62479662a3519c117f6344ea4 /window.c | |
parent | 509a7e8b73e6ed60ceb579cead2f073307120927 (diff) | |
download | rtmux-c82e06804e41af6b13b3a75e0268f32fbc4a4210.tar.gz rtmux-c82e06804e41af6b13b3a75e0268f32fbc4a4210.tar.bz2 rtmux-c82e06804e41af6b13b3a75e0268f32fbc4a4210.zip |
Sync OpenBSD patchset 1024:
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
@@ -359,6 +359,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; |