From e67548dc36fdb4454aded1c95bd35e2443191f94 Mon Sep 17 00:00:00 2001 From: nicm Date: Mon, 6 Feb 2017 15:00:41 +0000 Subject: Cancel key table when switching session, unless the key is going to repeat. Reported by Amos Bird. --- cmd-switch-client.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cmd-switch-client.c') 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); -- cgit