diff options
author | Thomas Adam <thomas@xteddy.org> | 2023-07-19 16:01:09 +0100 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2023-07-19 16:01:09 +0100 |
commit | fda393773485c7c9236e4cf0c18668ab809d2574 (patch) | |
tree | a2a50bd9b57ea6e81a3383dd20f02229d6e9f650 | |
parent | 715f39a53a93394ab5d697228c7a41661357948b (diff) | |
parent | b13c2307497c1d905c07e7c21cd78b2c223fa4ee (diff) |
Merge branch 'obsd-master'
-rw-r--r-- | session.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -737,9 +737,12 @@ session_renumber_windows(struct session *s) memcpy(&old_lastw, &s->lastw, sizeof old_lastw); TAILQ_INIT(&s->lastw); TAILQ_FOREACH(wl, &old_lastw, sentry) { + wl->flags &= ~WINLINK_VISITED; wl_new = winlink_find_by_window(&s->windows, wl->window); - if (wl_new != NULL) + if (wl_new != NULL) { TAILQ_INSERT_TAIL(&s->lastw, wl_new, sentry); + wl_new->flags |= WINLINK_VISITED; + } } /* Set the current window. */ |