summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/tmux.h
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2009-10-10 09:46:12 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2009-10-10 09:46:12 +0000
commit79fc4e03d25eb15999e2ba0c4e7f9bab8470133d (patch)
treea66044b89b9b395f683c3ce91030f91e99e20eaa /usr.bin/tmux/tmux.h
parentd5cdc5f5f5ea995faaebb8826ae6e7d2eda59974 (diff)
Support for individual session idle time locking. May be enabled by turning off
the lock-server option (it is on by default). When this is off, each session locks when it has been idle for the lock-after-time setting. When on, the entire server locks when ALL sessions have been idle for their individual lock-after-time settings. This replaces one global-only option (lock-after-time) with another (lock-server), but the default behaviour is usually preferable so there don't seem to be many alternatives. Diff/idea largely from Thomas Adam, tweaked by me.
Diffstat (limited to 'usr.bin/tmux/tmux.h')
-rw-r--r--usr.bin/tmux/tmux.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/tmux.h b/usr.bin/tmux/tmux.h
index 63232244ec9..2fd7ad7e771 100644
--- a/usr.bin/tmux/tmux.h
+++ b/usr.bin/tmux/tmux.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: tmux.h,v 1.122 2009/10/09 07:33:12 nicm Exp $ */
+/* $OpenBSD: tmux.h,v 1.123 2009/10/10 09:46:11 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -800,6 +800,7 @@ struct session_alert {
struct session {
char *name;
struct timeval tv;
+ time_t activity;
u_int sx;
u_int sy;
@@ -1117,7 +1118,6 @@ extern struct options global_s_options;
extern struct options global_w_options;
extern struct environ global_environ;
extern char *cfg_file;
-extern time_t server_activity;
extern int debug_level;
extern int be_quiet;
extern time_t start_time;