summaryrefslogtreecommitdiffstats
path: root/names.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2012-04-08 06:47:26 +0000
committerNicholas Marriott <nicm@openbsd.org>2012-04-08 06:47:26 +0000
commit631d6b59fdb193cc29d845d1baf30b729a4cb75a (patch)
tree90e2f029008bc8cba2e6a5140d799d2e1ed712c1 /names.c
parented54f01d2f830935e443b3c009a6ef6085c9ae20 (diff)
Do not fire name timer when automatic-rename is off, from Tim Ruehsen a
while ago.
Diffstat (limited to 'names.c')
-rw-r--r--names.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/names.c b/names.c
index 5821d94a..469f9123 100644
--- a/names.c
+++ b/names.c
@@ -49,9 +49,7 @@ window_name_callback(unused int fd, unused short events, void *data)
struct window *w = data;
char *name, *wname;
- queue_window_name(w); /* XXX even if the option is off? */
- if (!options_get_number(&w->options, "automatic-rename"))
- return;
+ queue_window_name(w); /* stopped when option turned off */
if (w->active->screen != &w->active->base)
name = NULL;