diff options
author | nicm <nicm> | 2015-08-28 16:10:46 +0000 |
---|---|---|
committer | nicm <nicm> | 2015-08-28 16:10:46 +0000 |
commit | 55b8d7456155de4e5d44136a140a599e2a2a755b (patch) | |
tree | 5319be8f04742fad7581402f461ec10ae4246d4f /cmd-set-option.c | |
parent | e2100c5f5f9c71185e2a3c410ebdd37f52d701a7 (diff) | |
download | rtmux-55b8d7456155de4e5d44136a140a599e2a2a755b.tar.gz rtmux-55b8d7456155de4e5d44136a140a599e2a2a755b.tar.bz2 rtmux-55b8d7456155de4e5d44136a140a599e2a2a755b.zip |
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.
Diffstat (limited to 'cmd-set-option.c')
-rw-r--r-- | cmd-set-option.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cmd-set-option.c b/cmd-set-option.c index 631a4d0e..56ca91e0 100644 --- a/cmd-set-option.c +++ b/cmd-set-option.c @@ -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 || |