diff options
author | 2011-01-01 01:12:09 +0000 | |
---|---|---|
committer | 2011-01-01 01:12:09 +0000 | |
commit | d43b0d5f23fd8fcc44965e52a54c1c108b643527 (patch) | |
tree | 77441215a4baba7412c968061d99e00c9be8ece7 /usr.bin/tmux/tmux.h | |
parent | Remove unused variable. (diff) | |
download | wireguard-openbsd-d43b0d5f23fd8fcc44965e52a54c1c108b643527.tar.xz wireguard-openbsd-d43b0d5f23fd8fcc44965e52a54c1c108b643527.zip |
Don't reset the activity timer for unattached sessions every second,
this screws up the choice of most-recently-used. Instead, break the time
update into a little function and do it when the session is attached.
Pointed out by joshe@.
Diffstat (limited to 'usr.bin/tmux/tmux.h')
-rw-r--r-- | usr.bin/tmux/tmux.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/tmux/tmux.h b/usr.bin/tmux/tmux.h index 3c747bcd7ba..dd72c9720e4 100644 --- a/usr.bin/tmux/tmux.h +++ b/usr.bin/tmux/tmux.h @@ -1,4 +1,4 @@ -/* $OpenBSD: tmux.h,v 1.258 2010/12/30 23:20:13 nicm Exp $ */ +/* $OpenBSD: tmux.h,v 1.259 2011/01/01 01:12:09 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -1980,6 +1980,7 @@ struct session *session_create(const char *, const char *, const char *, struct environ *, struct termios *, int, u_int, u_int, char **); void session_destroy(struct session *); +void session_update_activity(struct session *); struct session *session_next_session(struct session *); struct session *session_previous_session(struct session *); struct winlink *session_new(struct session *, |