Update latest client for target session on switch-client.

pull/2106/head
nicm 2020-03-06 15:35:03 +00:00
parent 8be179de46
commit add75a06cd
1 changed files with 2 additions and 1 deletions

View File

@ -142,10 +142,11 @@ cmd_switch_client_exec(struct cmd *self, struct cmdq_item *item)
session_update_activity(s, NULL);
gettimeofday(&s->last_attached_time, NULL);
recalculate_sizes();
server_check_unattached();
server_redraw_client(c);
s->curw->flags &= ~WINLINK_ALERTFLAGS;
s->curw->window->latest = c;
recalculate_sizes();
alerts_check_session(s);
return (CMD_RETURN_NORMAL);