When toggling between sessions, ensure that applications in the new session adapt to the client's theme.

This commit is contained in:
Jonathan Slenders
2025-02-27 20:50:39 +00:00
parent b448f4ba6c
commit b3d3a37e5e
4 changed files with 17 additions and 16 deletions

View File

@@ -751,3 +751,16 @@ session_renumber_windows(struct session *s)
RB_FOREACH_SAFE(wl, winlinks, &old_wins, wl1)
winlink_remove(&old_wins, wl);
}
/* Set the PANE_THEMECHANGED flag for every pane in this session. */
void
session_theme_changed(struct session *s)
{
struct window_pane *wp;
struct winlink *wl;
RB_FOREACH(wl, winlinks, &s->windows) {
TAILQ_FOREACH(wp, &wl->window->panes, entry)
wp->flags |= PANE_THEMECHANGED;
}
}