summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/cmd-set-option.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2015-08-28 16:10:46 +0000
committernicm <nicm@openbsd.org>2015-08-28 16:10:46 +0000
commitf5015e681a1eecd3b0661a8df7c9584184871bb9 (patch)
treea7781d61e1d97b2dc8534d118c034663fdff424e /usr.bin/tmux/cmd-set-option.c
parentWe now only checking for name changes when the active pane has changed, (diff)
downloadwireguard-openbsd-f5015e681a1eecd3b0661a8df7c9584184871bb9.tar.xz
wireguard-openbsd-f5015e681a1eecd3b0661a8df7c9584184871bb9.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 'usr.bin/tmux/cmd-set-option.c')
-rw-r--r--usr.bin/tmux/cmd-set-option.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/tmux/cmd-set-option.c b/usr.bin/tmux/cmd-set-option.c
index ed50d855979..5f4461f6063 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.79 2015/08/28 15:51:48 nicm Exp $ */
+/* $OpenBSD: cmd-set-option.c,v 1.80 2015/08/28 16:10:46 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -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 ||