From cce03e138b6363036d9b6c3c96925b3a372e421b Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Fri, 13 Feb 2009 00:43:04 +0000 Subject: 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. --- tmux.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'tmux.h') diff --git a/tmux.h b/tmux.h index 769d99c8..af3c024b 100644 --- a/tmux.h +++ b/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 @@ -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); -- cgit