Check alerts when session changes, from Patrick Palka.

This commit is contained in:
nicm 2015-12-11 12:39:47 +00:00
parent 01831da5f5
commit d7e11d0af7
2 changed files with 2 additions and 0 deletions

View File

@ -131,6 +131,7 @@ cmd_switch_client_exec(struct cmd *self, struct cmd_q *cmdq)
server_check_unattached(); server_check_unattached();
server_redraw_client(c); server_redraw_client(c);
s->curw->flags &= ~WINLINK_ALERTFLAGS; s->curw->flags &= ~WINLINK_ALERTFLAGS;
alerts_check_session(s);
return (CMD_RETURN_NORMAL); return (CMD_RETURN_NORMAL);
} }

View File

@ -389,6 +389,7 @@ server_destroy_session(struct session *s)
session_update_activity(s_new, NULL); session_update_activity(s_new, NULL);
gettimeofday(&s_new->last_attached_time, NULL); gettimeofday(&s_new->last_attached_time, NULL);
server_redraw_client(c); server_redraw_client(c);
alerts_check_session(s_new);
} }
} }
recalculate_sizes(); recalculate_sizes();