From c5542637d736424c3b73c6277bd70ac255762eaf Mon Sep 17 00:00:00 2001 From: nicm Date: Sat, 2 Sep 2023 08:38:37 +0000 Subject: Set visited flag on last windows when linking session. --- session.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'session.c') diff --git a/session.c b/session.c index 688b23f4..1d3b8d0e 100644 --- a/session.c +++ b/session.c @@ -687,8 +687,10 @@ session_group_synchronize1(struct session *target, struct session *s) TAILQ_INIT(&s->lastw); TAILQ_FOREACH(wl, &old_lastw, sentry) { wl2 = winlink_find_by_index(&s->windows, wl->idx); - if (wl2 != NULL) + if (wl2 != NULL) { TAILQ_INSERT_TAIL(&s->lastw, wl2, sentry); + wl2->flags |= WINLINK_VISITED; + } } /* Then free the old winlinks list. */ -- cgit v1.2.3