aboutsummaryrefslogtreecommitdiff
path: root/names.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2009-02-13 00:43:04 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2009-02-13 00:43:04 +0000
commitcce03e138b6363036d9b6c3c96925b3a372e421b (patch)
tree0a35dd6ae5cc69dc77423576d203f9b24a59b147 /names.c
parentb1e911aff02d8381018fca067e7783c6a72da593 (diff)
downloadrtmux-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.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/names.c b/names.c
index 1d83e8d2..3f18390e 100644
--- a/names.c
+++ b/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 {