diff options
author | nicm <nicm> | 2017-02-06 15:00:41 +0000 |
---|---|---|
committer | nicm <nicm> | 2017-02-06 15:00:41 +0000 |
commit | e67548dc36fdb4454aded1c95bd35e2443191f94 (patch) | |
tree | 2e7bb998b44f8feb59b06e9b2fbd9be2b811de5b /cmd-switch-client.c | |
parent | d150d9b384612c1ee2c52009b996a4466e111049 (diff) |
Cancel key table when switching session, unless the key is going to
repeat. Reported by Amos Bird.
Diffstat (limited to 'cmd-switch-client.c')
-rw-r--r-- | cmd-switch-client.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cmd-switch-client.c b/cmd-switch-client.c index 5cf4756f..5bcdbb78 100644 --- a/cmd-switch-client.c +++ b/cmd-switch-client.c @@ -108,6 +108,8 @@ 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 (!item->repeat) + server_client_set_key_table(c, NULL); status_timer_start(c); session_update_activity(s, NULL); gettimeofday(&s->last_attached_time, NULL); |