diff options
author | nicm <nicm> | 2021-08-13 06:52:51 +0000 |
---|---|---|
committer | nicm <nicm> | 2021-08-13 06:52:51 +0000 |
commit | 2bb0b9d6c5edd7c4127c971f5ccebed969f86c1c (patch) | |
tree | dc1ce41c165065e588de274dd754113bd0cb8a3f /server-fn.c | |
parent | a2b85069171413aa30c812d44bf8ee4d32a2f834 (diff) | |
download | rtmux-2bb0b9d6c5edd7c4127c971f5ccebed969f86c1c.tar.gz rtmux-2bb0b9d6c5edd7c4127c971f5ccebed969f86c1c.tar.bz2 rtmux-2bb0b9d6c5edd7c4127c971f5ccebed969f86c1c.zip |
Change focus to be driven by events rather than walking all panes at end
of event loop, this way the ordering of in and out can be enforced.
GitHub issue 2808.
Diffstat (limited to 'server-fn.c')
-rw-r--r-- | server-fn.c | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/server-fn.c b/server-fn.c index 4358fa5c..9b2f073b 100644 --- a/server-fn.c +++ b/server-fn.c @@ -445,21 +445,9 @@ server_destroy_session(struct session *s) TAILQ_FOREACH(c, &clients, entry) { if (c->session != s) continue; - if (s_new == NULL) { - c->session = NULL; + server_client_set_session(c, NULL); + if (s_new == NULL) c->flags |= CLIENT_EXIT; - } else { - c->last_session = NULL; - c->session = s_new; - server_client_set_key_table(c, NULL); - tty_update_client_offset(c); - status_timer_start(c); - notify_client("client-session-changed", c); - session_update_activity(s_new, NULL); - gettimeofday(&s_new->last_attached_time, NULL); - server_redraw_client(c); - alerts_check_session(s_new); - } } recalculate_sizes(); } |