diff options
author | Thomas Adam <thomas@xteddy.org> | 2023-09-02 12:01:09 +0100 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2023-09-02 12:01:09 +0100 |
commit | 7ad29b98311b4961d203dc360e6a21f35dac9f97 (patch) | |
tree | 61d839b77916c8260b0e7c8c68f6ad549d74937b /session.c | |
parent | e7c829fc67c9b037402ad1624139de33665fb96b (diff) | |
parent | d209fe9b1ef5cf135f86058942e3caa6f998038c (diff) |
Merge branch 'obsd-master'
Diffstat (limited to 'session.c')
-rw-r--r-- | session.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -685,8 +685,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. */ |