aboutsummaryrefslogtreecommitdiff
path: root/server-client.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2010-12-11 18:42:20 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2010-12-11 18:42:20 +0000
commit5fcd6711e4319a03349a9506d646767c73a5381a (patch)
tree13ecf2ecd2e73ee38e644ed069be19c5b31ed257 /server-client.c
parentd227a2e661f32d3b5058357872ae3cf797d3cd42 (diff)
downloadrtmux-5fcd6711e4319a03349a9506d646767c73a5381a.tar.gz
rtmux-5fcd6711e4319a03349a9506d646767c73a5381a.tar.bz2
rtmux-5fcd6711e4319a03349a9506d646767c73a5381a.zip
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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/server-client.c b/server-client.c
index d98238e3..313fbdda 100644
--- a/server-client.c
+++ b/server-client.c
@@ -1,4 +1,4 @@
-/* $Id: server-client.c,v 1.46 2010-12-11 16:15:02 nicm Exp $ */
+/* $Id: server-client.c,v 1.47 2010-12-11 18:42:20 nicm Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -77,6 +77,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;