Fix window-size=latest not resizing on switch-client in session groups.

From Ilya Grigoriev in GitHub issue 4818.
This commit is contained in:
nicm
2026-01-20 22:50:08 +00:00
parent ab1f2ef71c
commit 8e06739e26

View File

@@ -407,13 +407,13 @@ server_client_set_session(struct client *c, struct session *s)
if (old != NULL && old->curw != NULL)
window_update_focus(old->curw->window);
if (s != NULL) {
s->curw->window->latest = c;
recalculate_sizes();
window_update_focus(s->curw->window);
session_update_activity(s, NULL);
session_theme_changed(s);
gettimeofday(&s->last_attached_time, NULL);
s->curw->flags &= ~WINLINK_ALERTFLAGS;
s->curw->window->latest = c;
alerts_check_session(s);
tty_update_client_offset(c);
status_timer_start(c);