=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/cmd-switch-client.c,v retrieving revision 1.68 retrieving revision 1.69 diff -c -r1.68 -r1.69 *** src/usr.bin/tmux/cmd-switch-client.c 2021/03/11 06:31:05 1.68 --- src/usr.bin/tmux/cmd-switch-client.c 2021/08/13 06:52:51 1.69 *************** *** 1,4 **** ! /* $OpenBSD: cmd-switch-client.c,v 1.68 2021/03/11 06:31:05 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: cmd-switch-client.c,v 1.69 2021/08/13 06:52:51 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott *************** *** 134,156 **** if (!args_has(args, 'E')) environ_update(s->options, tc->environ, s->environ); ! if (tc->session != NULL && tc->session != s) ! tc->last_session = tc->session; ! tc->session = s; if (~cmdq_get_flags(item) & CMDQ_STATE_REPEAT) server_client_set_key_table(tc, NULL); - tty_update_client_offset(tc); - status_timer_start(tc); - notify_client("client-session-changed", tc); - session_update_activity(s, NULL); - gettimeofday(&s->last_attached_time, NULL); - - server_check_unattached(); - server_redraw_client(tc); - s->curw->flags &= ~WINLINK_ALERTFLAGS; - s->curw->window->latest = tc; - recalculate_sizes(); - alerts_check_session(s); return (CMD_RETURN_NORMAL); } --- 134,142 ---- if (!args_has(args, 'E')) environ_update(s->options, tc->environ, s->environ); ! server_client_set_session(tc, s); if (~cmdq_get_flags(item) & CMDQ_STATE_REPEAT) server_client_set_key_table(tc, NULL); return (CMD_RETURN_NORMAL); }