diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-02-13 00:43:04 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-02-13 00:43:04 +0000 |
commit | cce03e138b6363036d9b6c3c96925b3a372e421b (patch) | |
tree | 0a35dd6ae5cc69dc77423576d203f9b24a59b147 /tmux.h | |
parent | b1e911aff02d8381018fca067e7783c6a72da593 (diff) | |
download | rtmux-cce03e138b6363036d9b6c3c96925b3a372e421b.tar.gz rtmux-cce03e138b6363036d9b6c3c96925b3a372e421b.tar.bz2 rtmux-cce03e138b6363036d9b6c3c96925b3a372e421b.zip |
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.
Diffstat (limited to 'tmux.h')
-rw-r--r-- | tmux.h | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -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); |