diff options
author | 2015-08-29 00:29:15 +0000 | |
---|---|---|
committer | 2015-08-29 00:29:15 +0000 | |
commit | 00b2decc3841b80efc3cd66a1bb886e7b031d267 (patch) | |
tree | f4600e572bcbeb6fbef3a251135db18ec6ee4955 /usr.bin/tmux/cmd-set-option.c | |
parent | Microseconds in log time. (diff) | |
download | wireguard-openbsd-00b2decc3841b80efc3cd66a1bb886e7b031d267.tar.xz wireguard-openbsd-00b2decc3841b80efc3cd66a1bb886e7b031d267.zip |
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 'usr.bin/tmux/cmd-set-option.c')
-rw-r--r-- | usr.bin/tmux/cmd-set-option.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/usr.bin/tmux/cmd-set-option.c b/usr.bin/tmux/cmd-set-option.c index 5f4461f6063..78929028292 100644 --- a/usr.bin/tmux/cmd-set-option.c +++ b/usr.bin/tmux/cmd-set-option.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-set-option.c,v 1.80 2015/08/28 16:10:46 nicm Exp $ */ +/* $OpenBSD: cmd-set-option.c,v 1.81 2015/08/29 00:29:15 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -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 || |