summaryrefslogtreecommitdiffstats
path: root/server-client.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2021-09-27 22:01:10 +0100
committerThomas Adam <thomas@xteddy.org>2021-09-27 22:01:10 +0100
commitbf595a0cb0eb132b7365e8f1d19f07b255cbf191 (patch)
treeea2f5e01018d0ff5022bbf1b98fb11c98a7d5100 /server-client.c
parent03f9963f3dd58283be1f68db581e1caad68d1a16 (diff)
parent68c890585991c1114690d43a179eef0a7f207871 (diff)
Merge branch 'obsd-master' into master
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 1290c2a6..d8cbfdbf 100644
--- a/server-client.c
+++ b/server-client.c
@@ -318,11 +318,11 @@ server_client_set_session(struct client *c, struct session *s)
c->last_session = NULL;
c->session = s;
c->flags |= CLIENT_FOCUSED;
- recalculate_sizes();
if (old != NULL && old->curw != NULL)
window_update_focus(old->curw->window);
if (s != NULL) {
+ recalculate_sizes();
window_update_focus(s->curw->window);
session_update_activity(s, NULL);
gettimeofday(&s->last_attached_time, NULL);
@@ -2054,6 +2054,7 @@ server_client_dispatch(struct imsg *imsg, void *arg)
if (datalen != 0)
fatalx("bad MSG_EXITING size");
server_client_set_session(c, NULL);
+ recalculate_sizes();
tty_close(&c->tty);
proc_send(c->peer, MSG_EXITED, -1, NULL, 0);
break;