From 1921fac814b98607031d975b69c6293a6227e274 Mon Sep 17 00:00:00 2001 From: nicm Date: Mon, 30 May 2016 09:50:20 +0000 Subject: Cache the window styles and do not look up the window-style options unless they have changed. --- cmd-set-option.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'cmd-set-option.c') diff --git a/cmd-set-option.c b/cmd-set-option.c index 6fc6c8ba..356668ee 100644 --- a/cmd-set-option.c +++ b/cmd-set-option.c @@ -200,6 +200,11 @@ cmd_set_option_exec(struct cmd *self, struct cmd_q *cmdq) status_timer_start_all(); if (strcmp(oe->name, "monitor-silence") == 0) alerts_reset_all(); + if (strcmp(oe->name, "window-style") == 0 || + strcmp(oe->name, "window-active-style") == 0) { + RB_FOREACH(w, windows, &windows) + w->flags |= WINDOW_STYLECHANGED; + } /* When the pane-border-status option has been changed, resize panes. */ if (strcmp(oe->name, "pane-border-status") == 0) { -- cgit