diff options
author | Thomas Adam <thomas@xteddy.org> | 2016-10-14 02:01:14 +0100 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2016-10-14 02:01:14 +0100 |
commit | 117737c6cae90d8c53c73fd2440eec17def10bb1 (patch) | |
tree | bcc25aa554c0c0ce9456c629e29dc5d58ba54df0 /cmd-split-window.c | |
parent | a7ce19347a81282b82db1663eed5fd8dd00e927f (diff) | |
parent | 4289a1ebfa7479413ec5ac543b88c4ea039d00a0 (diff) | |
download | rtmux-117737c6cae90d8c53c73fd2440eec17def10bb1.tar.gz rtmux-117737c6cae90d8c53c73fd2440eec17def10bb1.tar.bz2 rtmux-117737c6cae90d8c53c73fd2440eec17def10bb1.zip |
Merge branch 'obsd-master'
Diffstat (limited to 'cmd-split-window.c')
-rw-r--r-- | cmd-split-window.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/cmd-split-window.c b/cmd-split-window.c index c3c32abb..8fddee4b 100644 --- a/cmd-split-window.c +++ b/cmd-split-window.c @@ -65,6 +65,7 @@ cmd_split_window_exec(struct cmd *self, struct cmd_q *cmdq) struct layout_cell *lc; struct format_tree *ft; struct environ_entry *envent; + struct cmd_find_state fs; server_unzoom_window(w); @@ -177,15 +178,17 @@ cmd_split_window_exec(struct cmd *self, struct cmd_q *cmdq) } notify_window_layout_changed(w); - cmd_find_clear_state(&cmdq->current, NULL, 0); - cmdq->current.s = s; - cmdq->current.wl = wl; - cmdq->current.w = wl->window; - cmdq->current.wp = new_wp; - cmd_find_log_state(__func__, &cmdq->current); - if (to_free != NULL) free((void *)to_free); + + cmd_find_clear_state(&fs, NULL, 0); + fs.s = s; + fs.wl = wl; + fs.w = w; + fs.wp = new_wp; + cmd_find_log_state(__func__, &fs); + if (hooks_wait(s->hooks, cmdq, &fs, "after-split-window") == 0) + return (CMD_RETURN_WAIT); return (CMD_RETURN_NORMAL); error: |