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 /names.c | |
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 'names.c')
-rw-r--r-- | names.c | 10 |
1 files changed, 3 insertions, 7 deletions
@@ -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 { |