summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2020-03-06 18:01:26 +0000
committerThomas Adam <thomas@xteddy.org>2020-03-06 18:01:26 +0000
commit9e4d0b2b6d9230fea15d509a33ef890c366278ce (patch)
treedf702a9b8bd9fdefe1f96f415cc3eee30d0249d6
parentccd24c9cb242b736aa4431ed002ccdc491c49b92 (diff)
parentadd75a06cd9dfa7c01608e81ab418b37ec17533c (diff)
Merge branch 'obsd-master'
-rw-r--r--cmd-switch-client.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd-switch-client.c b/cmd-switch-client.c
index 309a7e7c..61677761 100644
--- a/cmd-switch-client.c
+++ b/cmd-switch-client.c
@@ -142,10 +142,11 @@ cmd_switch_client_exec(struct cmd *self, struct cmdq_item *item)
session_update_activity(s, NULL);
gettimeofday(&s->last_attached_time, NULL);
- recalculate_sizes();
server_check_unattached();
server_redraw_client(c);
s->curw->flags &= ~WINLINK_ALERTFLAGS;
+ s->curw->window->latest = c;
+ recalculate_sizes();
alerts_check_session(s);
return (CMD_RETURN_NORMAL);