From d7e11d0af78bacc7722998509ac93be7fcffc7b4 Mon Sep 17 00:00:00 2001 From: nicm Date: Fri, 11 Dec 2015 12:39:47 +0000 Subject: [PATCH] Check alerts when session changes, from Patrick Palka. --- cmd-switch-client.c | 1 + server-fn.c | 1 + 2 files changed, 2 insertions(+) diff --git a/cmd-switch-client.c b/cmd-switch-client.c index 4c847584..edc0fd69 100644 --- a/cmd-switch-client.c +++ b/cmd-switch-client.c @@ -131,6 +131,7 @@ cmd_switch_client_exec(struct cmd *self, struct cmd_q *cmdq) server_check_unattached(); server_redraw_client(c); s->curw->flags &= ~WINLINK_ALERTFLAGS; + alerts_check_session(s); return (CMD_RETURN_NORMAL); } diff --git a/server-fn.c b/server-fn.c index a22c964d..07ade08c 100644 --- a/server-fn.c +++ b/server-fn.c @@ -389,6 +389,7 @@ server_destroy_session(struct session *s) session_update_activity(s_new, NULL); gettimeofday(&s_new->last_attached_time, NULL); server_redraw_client(c); + alerts_check_session(s_new); } } recalculate_sizes();