aboutsummaryrefslogtreecommitdiff
path: root/window.c
diff options
context:
space:
mode:
authornicm <nicm>2015-08-28 15:51:48 +0000
committernicm <nicm>2015-08-28 15:51:48 +0000
commite2100c5f5f9c71185e2a3c410ebdd37f52d701a7 (patch)
tree63fdea353ef8c7307bb31467dbaf579527f5d306 /window.c
parentb0940bdf5460ec3324254b5df68b5386513641b2 (diff)
downloadrtmux-e2100c5f5f9c71185e2a3c410ebdd37f52d701a7.tar.gz
rtmux-e2100c5f5f9c71185e2a3c410ebdd37f52d701a7.tar.bz2
rtmux-e2100c5f5f9c71185e2a3c410ebdd37f52d701a7.zip
We now only checking for name changes when the active pane has changed,
but that can only happen when we have already been woken up by a read event, so there is no need for a timer, we can just check the changed flag on the end of that read event (we already loop over the windows to check for bells etc anyway).
Diffstat (limited to 'window.c')
-rw-r--r--window.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/window.c b/window.c
index 77c7a633..bfd13b1c 100644
--- a/window.c
+++ b/window.c
@@ -299,8 +299,6 @@ window_create1(u_int sx, u_int sy)
fatal("gettimeofday failed");
options_init(&w->options, &global_w_options);
- if (options_get_number(&w->options, "automatic-rename"))
- queue_window_name(w);
w->references = 0;
@@ -349,9 +347,6 @@ window_destroy(struct window *w)
layout_free_cell(w->saved_layout_root);
free(w->old_layout);
- if (event_initialized(&w->name_timer))
- evtimer_del(&w->name_timer);
-
options_free(&w->options);
window_destroy_panes(w);