summaryrefslogtreecommitdiffstats
path: root/cmd-set-option.c
diff options
context:
space:
mode:
authornicm <nicm>2015-08-29 00:29:15 +0000
committernicm <nicm>2015-08-29 00:29:15 +0000
commitb7861f34bae7a9e00446e0a8cf2f38e220c41c79 (patch)
tree21b376c463a45225cb959029953f2f48a2a68192 /cmd-set-option.c
parent73bd8160768c5411bf96c8e2326c36f19cdd45c5 (diff)
Better take on reducing the name timer. Again check for name changes in
the main loop after events that may have changed the pane, but do so at most once every 500 millis. If the pane changed too soon, use a timer to ensure that a check happens later.
Diffstat (limited to 'cmd-set-option.c')
-rw-r--r--cmd-set-option.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/cmd-set-option.c b/cmd-set-option.c
index 56ca91e0..631a4d0e 100644
--- a/cmd-set-option.c
+++ b/cmd-set-option.c
@@ -180,9 +180,7 @@ cmd_set_option_exec(struct cmd *self, struct cmd_q *cmdq)
if (strcmp(oe->name, "automatic-rename") == 0) {
RB_FOREACH(w, windows, &windows) {
if (options_get_number(&w->options, "automatic-rename"))
- queue_window_name(w);
- else if (event_initialized(&w->name_timer))
- evtimer_del(&w->name_timer);
+ w->active->flags |= PANE_CHANGED;
}
}
if (strcmp(oe->name, "status") == 0 ||