Don't reset the activity timer for unattached sessions every second,
commit04b32fa734d491e7ae9b915dc309858310d96185
authorNicholas Marriott <nicm@openbsd.org>
Sat, 1 Jan 2011 01:12:09 +0000 (1 01:12 +0000)
committerNicholas Marriott <nicm@openbsd.org>
Sat, 1 Jan 2011 01:12:09 +0000 (1 01:12 +0000)
tree877284af9511a2c46a1f9a949ca6cbab3184a0be
parent91218f8714dafa83f49ece4435cc3d26a738a02e
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@.
cmd-attach-session.c
cmd-new-session.c
cmd-switch-client.c
server-client.c
server-fn.c
server.c
session.c
tmux.h