summaryrefslogtreecommitdiffstats
path: root/server-fn.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-fn.c
parentd227a2e661f32d3b5058357872ae3cf797d3cd42 (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-fn.c')
-rw-r--r--server-fn.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/server-fn.c b/server-fn.c
index 897a38f2..c5a5ccb2 100644
--- a/server-fn.c
+++ b/server-fn.c
@@ -1,4 +1,4 @@
-/* $Id: server-fn.c,v 1.113 2010-10-09 14:31:50 tcunha Exp $ */
+/* $Id: server-fn.c,v 1.114 2010-12-11 18:42:20 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -399,6 +399,7 @@ server_destroy_session(struct session *s)
c->session = NULL;
c->flags |= CLIENT_EXIT;
} else {
+ c->last_session = UINT_MAX;
c->session = s_new;
server_redraw_client(c);
}