diff options
author | Thomas Adam <thomas@xteddy.org> | 2020-04-13 16:01:46 +0100 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2020-04-13 16:01:46 +0100 |
commit | 0a11f1607b9f3623dce287d4940bb925b533a340 (patch) | |
tree | 381726321744f6e0ad4e454409dc74498965c82c /cmd-switch-client.c | |
parent | 8f2b5d714a9f854c9583cab8bae70a2c7323fa00 (diff) | |
parent | 9a65102bfc2ed5d1e1f41e47451b8296c84f133d (diff) | |
download | rtmux-0a11f1607b9f3623dce287d4940bb925b533a340.tar.gz rtmux-0a11f1607b9f3623dce287d4940bb925b533a340.tar.bz2 rtmux-0a11f1607b9f3623dce287d4940bb925b533a340.zip |
Merge branch 'obsd-master'
Diffstat (limited to 'cmd-switch-client.c')
-rw-r--r-- | cmd-switch-client.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd-switch-client.c b/cmd-switch-client.c index c33b74a1..de85122f 100644 --- a/cmd-switch-client.c +++ b/cmd-switch-client.c @@ -48,8 +48,8 @@ static enum cmd_retval cmd_switch_client_exec(struct cmd *self, struct cmdq_item *item) { struct args *args = cmd_get_args(self); - struct cmdq_shared *shared = cmdq_get_shared(item); - struct cmd_find_state *current = &shared->current; + struct cmdq_state *state = cmdq_get_state(item); + struct cmd_find_state *current = &state->current; struct cmd_find_state target; const char *tflag = args_get(args, 't'); enum cmd_find_type type; @@ -137,7 +137,7 @@ cmd_switch_client_exec(struct cmd *self, struct cmdq_item *item) if (c->session != NULL && c->session != s) c->last_session = c->session; c->session = s; - if (~shared->flags & CMDQ_SHARED_REPEAT) + if (~state->flags & CMDQ_STATE_REPEAT) server_client_set_key_table(c, NULL); tty_update_client_offset(c); status_timer_start(c); |