mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 13:37:12 +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:
10
names.c
10
names.c
@ -1,4 +1,4 @@
|
||||
/* $Id: names.c,v 1.3 2009-02-09 18:08:01 nicm Exp $ */
|
||||
/* $Id: names.c,v 1.4 2009-02-13 00:43:04 nicm Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||
@ -53,12 +53,8 @@ set_window_names(void)
|
||||
|
||||
if (w->active->screen != &w->active->base)
|
||||
name = NULL;
|
||||
else {
|
||||
if (osdep_get_name(w->active->fd,
|
||||
w->active->tty, &w->name_pid, &name) == 1)
|
||||
continue;
|
||||
}
|
||||
|
||||
else
|
||||
name = osdep_get_name(w->active->fd, w->active->tty);
|
||||
if (name == NULL)
|
||||
wname = default_window_name(w);
|
||||
else {
|
||||
|
Reference in New Issue
Block a user