mirror of
https://github.com/tmux/tmux.git
synced 2024-11-16 01:18:52 +00:00
Check changed flag after restarting timer.
This commit is contained in:
parent
f957db81d9
commit
b0940bdf54
8
names.c
8
names.c
@ -50,10 +50,6 @@ window_name_callback(unused int fd, unused short events, void *data)
|
|||||||
if (w->active == NULL)
|
if (w->active == NULL)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (~w->active->flags & PANE_CHANGED)
|
|
||||||
return;
|
|
||||||
w->active->flags &= ~PANE_CHANGED;
|
|
||||||
|
|
||||||
if (!options_get_number(&w->options, "automatic-rename")) {
|
if (!options_get_number(&w->options, "automatic-rename")) {
|
||||||
if (event_initialized(&w->name_timer))
|
if (event_initialized(&w->name_timer))
|
||||||
event_del(&w->name_timer);
|
event_del(&w->name_timer);
|
||||||
@ -61,6 +57,10 @@ window_name_callback(unused int fd, unused short events, void *data)
|
|||||||
}
|
}
|
||||||
queue_window_name(w);
|
queue_window_name(w);
|
||||||
|
|
||||||
|
if (~w->active->flags & PANE_CHANGED)
|
||||||
|
return;
|
||||||
|
w->active->flags &= ~PANE_CHANGED;
|
||||||
|
|
||||||
name = format_window_name(w);
|
name = format_window_name(w);
|
||||||
if (strcmp(name, w->name) != 0) {
|
if (strcmp(name, w->name) != 0) {
|
||||||
window_set_name(w, name);
|
window_set_name(w, name);
|
||||||
|
Loading…
Reference in New Issue
Block a user