mirror of
https://github.com/tmux/tmux.git
synced 2025-09-05 08:07:03 +00:00
Looking up argv[0] is expensive, so just use p_comm for the window name which is good enough. Also increase name update time to 500 ms.
This commit is contained in:
7
tmux.h
7
tmux.h
@ -1,4 +1,4 @@
|
||||
/* $Id: tmux.h,v 1.270 2009-02-11 23:16:42 nicm Exp $ */
|
||||
/* $Id: tmux.h,v 1.271 2009-02-13 00:43:04 nicm Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||
@ -124,7 +124,7 @@ extern const char *__progname;
|
||||
#define PANE_MINIMUM 4 /* includes separator line */
|
||||
|
||||
/* Automatic name refresh interval, in milliseconds. */
|
||||
#define NAME_INTERVAL 250
|
||||
#define NAME_INTERVAL 500
|
||||
|
||||
/* Fatal errors. */
|
||||
#define fatal(msg) log_fatal("%s: %s", __func__, msg);
|
||||
@ -615,7 +615,6 @@ TAILQ_HEAD(window_panes, window_pane);
|
||||
struct window {
|
||||
char *name;
|
||||
struct timeval name_timer;
|
||||
pid_t name_pid;
|
||||
|
||||
struct window_pane *active;
|
||||
struct window_panes panes;
|
||||
@ -1527,7 +1526,7 @@ int utf8_width(u_int);
|
||||
char *section_string(char *, size_t, size_t, size_t);
|
||||
|
||||
/* osdep-*.c */
|
||||
int osdep_get_name(int, char *, pid_t *, char **);
|
||||
char *osdep_get_name(int, char *);
|
||||
|
||||
/* buffer.c */
|
||||
struct buffer *buffer_create(size_t);
|
||||
|
Reference in New Issue
Block a user