Add an activity time for clients, like for sessions, and change session and

client lookup to pick the most recently used rather than the most recently
created - this is much more useful when used interactively and (because the
activity time is set at creation) should have no effect on source-file.

Based on a problem reported by Jan Johansson.
This commit is contained in:
Nicholas Marriott
2009-11-03 22:40:40 +00:00
parent 5761ab6b55
commit 0785f2872f
4 changed files with 39 additions and 31 deletions

1
tmux.h
View File

@ -1064,6 +1064,7 @@ struct client {
struct imsgbuf ibuf;
struct timeval creation_time;
struct timeval activity_time;
struct environ environ;