summaryrefslogtreecommitdiffstats
path: root/cmd-set-option.c
diff options
context:
space:
mode:
authornicm <nicm>2016-05-30 09:50:20 +0000
committernicm <nicm>2016-05-30 09:50:20 +0000
commit1921fac814b98607031d975b69c6293a6227e274 (patch)
tree3b667b378aa05fd804395fb8424d6a03b587eb68 /cmd-set-option.c
parent36ab4c7c49d8ffbde113048acb8a6a05ceb00fdc (diff)
Cache the window styles and do not look up the window-style options
unless they have changed.
Diffstat (limited to 'cmd-set-option.c')
-rw-r--r--cmd-set-option.c5
1 files changed, 5 insertions, 0 deletions
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) {