Revert previous; we do need a timer, until I have a better idea. We

can't do the name check every loop, because that is too expensive, and
we can't make sure it only happens infrequently because we have no idea
when the next change will happen.
This commit is contained in:
nicm
2015-08-28 16:10:46 +00:00
parent e2100c5f5f
commit 55b8d74561
5 changed files with 35 additions and 10 deletions

View File

@ -180,7 +180,9 @@ 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"))
w->active->flags |= PANE_CHANGED;
queue_window_name(w);
else if (event_initialized(&w->name_timer))
evtimer_del(&w->name_timer);
}
}
if (strcmp(oe->name, "status") == 0 ||