aboutsummaryrefslogtreecommitdiff
path: root/window.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2009-02-09 18:08:01 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2009-02-09 18:08:01 +0000
commitc9cfc9a9f356386e07e6273f91dd3d46ca076c12 (patch)
treefd4f75d10b6b32715b6626e0af2c175d3b603401 /window.c
parent9d90d9ad705b9059e9bfa61b86cca7744cbca53d (diff)
downloadrtmux-c9cfc9a9f356386e07e6273f91dd3d46ca076c12.tar.gz
rtmux-c9cfc9a9f356386e07e6273f91dd3d46ca076c12.tar.bz2
rtmux-c9cfc9a9f356386e07e6273f91dd3d46ca076c12.zip
Don't try to change the window name unless the pid of the process chosen has
changed. Reduces CPU use. osdep-* stuff is a bit horrible now but there we go :-/.
Diffstat (limited to 'window.c')
-rw-r--r--window.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/window.c b/window.c
index c8780e31..e77b5f46 100644
--- a/window.c
+++ b/window.c
@@ -1,4 +1,4 @@
-/* $Id: window.c,v 1.65 2009-02-08 16:11:26 nicm Exp $ */
+/* $Id: window.c,v 1.66 2009-02-09 18:08:01 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -235,6 +235,7 @@ window_create(const char *name, const char *cmd, const char *cwd,
}
w->active = TAILQ_FIRST(&w->panes);
+ w->name_pid = -1;
if (name != NULL) {
w->name = xstrdup(name);
options_set_number(&w->options, "automatic-rename", 0);