Change window name change to use a timer event rather than a gettimeofday()

check every loop.
This commit is contained in:
Nicholas Marriott
2009-11-04 23:54:57 +00:00
parent 946ed97273
commit 44d6a2c435
4 changed files with 56 additions and 64 deletions

4
tmux.h
View File

@ -810,7 +810,7 @@ TAILQ_HEAD(window_panes, window_pane);
/* Window structure. */
struct window {
char *name;
struct timeval name_timer;
struct event name_timer;
struct window_pane *active;
struct window_panes panes;
@ -1851,7 +1851,7 @@ void window_choose_ready(struct window_pane *,
u_int, void (*)(void *, int), void (*)(void *), void *);
/* names.c */
void set_window_names(void);
void queue_window_name(struct window *);
char *default_window_name(struct window *);
/* session.c */