diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2020-05-15 22:52:55 +0100 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2020-05-15 22:52:55 +0100 |
commit | c2167c5ee81022ddf9f02cfe189fcea736026ced (patch) | |
tree | 7fcd2837d99486c2648141df7e1d2b4624a6dcff | |
parent | e8ca5a4c7d336df422c0986fc9aee0ac52b8993a (diff) | |
download | rtmux-c2167c5ee81022ddf9f02cfe189fcea736026ced.tar.gz rtmux-c2167c5ee81022ddf9f02cfe189fcea736026ced.tar.bz2 rtmux-c2167c5ee81022ddf9f02cfe189fcea736026ced.zip |
On select-window, make this client the latest client for the window.
-rw-r--r-- | cmd-select-window.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cmd-select-window.c b/cmd-select-window.c index 377e3633..c85f36be 100644 --- a/cmd-select-window.c +++ b/cmd-select-window.c @@ -85,6 +85,7 @@ static enum cmd_retval cmd_select_window_exec(struct cmd *self, struct cmdq_item *item) { struct args *args = cmd_get_args(self); + struct client *c = cmdq_get_client(item); struct cmd_find_state *current = cmdq_get_current(item); struct cmd_find_state *target = cmdq_get_target(item); struct winlink *wl = target->wl; @@ -141,6 +142,8 @@ cmd_select_window_exec(struct cmd *self, struct cmdq_item *item) } cmdq_insert_hook(s, item, current, "after-select-window"); } + if (c->session != NULL) + s->curw->window->latest = c; recalculate_sizes(); return (CMD_RETURN_NORMAL); |