summaryrefslogtreecommitdiffstats
path: root/server-client.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2010-12-11 18:39:25 +0000
committerNicholas Marriott <nicm@openbsd.org>2010-12-11 18:39:25 +0000
commit51487ed22f0acf199f64728f3efc15a3c9ad615f (patch)
treed7702647b5c8d0337b0f5708118359ebd78e95d6 /server-client.c
parent20ed20ea1eb996cbfc530688dac7646f58a43fe6 (diff)
Track the last session for a client and add a flag to switch-client and
a key binding (L) to move a client back to its last session.
Diffstat (limited to 'server-client.c')
-rw-r--r--server-client.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/server-client.c b/server-client.c
index 80ec0e91..290a175a 100644
--- a/server-client.c
+++ b/server-client.c
@@ -78,6 +78,7 @@ server_client_create(int fd)
c->title = NULL;
c->session = NULL;
+ c->last_session = UINT_MAX;
c->tty.sx = 80;
c->tty.sy = 24;