diff options
author | nicm <nicm> | 2015-08-28 15:51:48 +0000 |
---|---|---|
committer | nicm <nicm> | 2015-08-28 15:51:48 +0000 |
commit | e2100c5f5f9c71185e2a3c410ebdd37f52d701a7 (patch) | |
tree | 63fdea353ef8c7307bb31467dbaf579527f5d306 /cmd-set-option.c | |
parent | b0940bdf5460ec3324254b5df68b5386513641b2 (diff) | |
download | rtmux-e2100c5f5f9c71185e2a3c410ebdd37f52d701a7.tar.gz rtmux-e2100c5f5f9c71185e2a3c410ebdd37f52d701a7.tar.bz2 rtmux-e2100c5f5f9c71185e2a3c410ebdd37f52d701a7.zip |
We now only checking for name changes when the active pane has changed,
but that can only happen when we have already been woken up by a read
event, so there is no need for a timer, we can just check the changed
flag on the end of that read event (we already loop over the windows to
check for bells etc anyway).
Diffstat (limited to 'cmd-set-option.c')
-rw-r--r-- | cmd-set-option.c | 4 |
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 || |