From c6e0af9bdb11e2a1d95859725ecedbba31eb3380 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Wed, 11 Apr 2012 07:45:30 +0000 Subject: [PATCH] Turn automatic-rename off properly if turned off by renaming a window. Reported by Romain Francoise. --- names.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/names.c b/names.c index 469f9123..a20d8cfc 100644 --- a/names.c +++ b/names.c @@ -49,7 +49,12 @@ window_name_callback(unused int fd, unused short events, void *data) struct window *w = data; char *name, *wname; - queue_window_name(w); /* stopped when option turned off */ + if (!options_get_number(&w->options, "automatic-rename")) { + if (event_initialized(&w->name_timer)) + event_del(&w->name_timer); + return; + } + queue_window_name(w); if (w->active->screen != &w->active->base) name = NULL;