Sync OpenBSD patchset 1093:

Turn automatic-rename off properly if turned off by renaming a
window. Reported by Romain Francoise.
pull/1/head
Tiago Cunha 2012-04-12 12:44:26 +00:00
parent bae2701289
commit e65c5ad56c
1 changed files with 6 additions and 1 deletions

View File

@ -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;