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).
This commit is contained in:
nicm
2015-08-28 15:51:48 +00:00
parent b0940bdf54
commit e2100c5f5f
5 changed files with 10 additions and 35 deletions

3
tmux.h
View File

@ -870,7 +870,6 @@ RB_HEAD(window_pane_tree, window_pane);
struct window {
u_int id;
char *name;
struct event name_timer;
struct timeval silence_timer;
struct timeval activity_time;
@ -2209,7 +2208,7 @@ void window_choose_collapse_all(struct window_pane *);
void window_choose_set_current(struct window_pane *, u_int);
/* names.c */
void queue_window_name(struct window *);
void check_window_name(struct window *);
char *default_window_name(struct window *);
char *format_window_name(struct window *);
char *parse_window_name(const char *);