diff options
author | Thomas Adam <thomas@xteddy.org> | 2019-06-30 21:02:26 +0100 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2019-06-30 21:02:26 +0100 |
commit | abcd4bd24662e79a7ae936c5d2c971417864c519 (patch) | |
tree | 9da6e4b100a5fd48271956c293a20e8b53277653 | |
parent | 68c2fc682493f154d833ae6195b4adc33fd4a3b2 (diff) | |
parent | cf30e0f9357b7e42491645a87eeae06ffb8e8066 (diff) | |
download | rtmux-abcd4bd24662e79a7ae936c5d2c971417864c519.tar.gz rtmux-abcd4bd24662e79a7ae936c5d2c971417864c519.tar.bz2 rtmux-abcd4bd24662e79a7ae936c5d2c971417864c519.zip |
Merge branch 'obsd-master'
-rw-r--r-- | spawn.c | 4 | ||||
-rw-r--r-- | tmux.h | 1 | ||||
-rw-r--r-- | window.c | 2 |
3 files changed, 2 insertions, 5 deletions
@@ -170,10 +170,8 @@ spawn_window(struct spawn_context *sc, char **cause) /* Spawn the pane. */ wp = spawn_pane(sc, cause); if (wp == NULL) { - if (~sc->flags & SPAWN_RESPAWN) { - window_destroy(w); + if (~sc->flags & SPAWN_RESPAWN) winlink_remove(&s->windows, sc->wl); - } return (NULL); } @@ -2364,7 +2364,6 @@ struct window *window_find_by_id_str(const char *); struct window *window_find_by_id(u_int); void window_update_activity(struct window *); struct window *window_create(u_int, u_int); -void window_destroy(struct window *); void window_pane_set_event(struct window_pane *); struct window_pane *window_get_active_at(struct window *, u_int, u_int); struct window_pane *window_find_string(struct window *, const char *); @@ -336,7 +336,7 @@ window_create(u_int sx, u_int sy) return (w); } -void +static void window_destroy(struct window *w) { log_debug("window @%u destroyed (%d references)", w->id, w->references); |