From 9260f5dc96ce6b0095bda2302f5238f67bf9fe1b Mon Sep 17 00:00:00 2001 From: nicm Date: Fri, 17 Jan 2025 15:53:01 +0000 Subject: [PATCH] Do not update focus on client's without a session. --- server-client.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server-client.c b/server-client.c index a89112241..4581e9bcf 100644 --- a/server-client.c +++ b/server-client.c @@ -159,7 +159,8 @@ server_client_clear_overlay(struct client *c) c->overlay_data = NULL; c->tty.flags &= ~(TTY_FREEZE|TTY_NOCURSOR); - window_update_focus(c->session->curw->window); + if (c->session != NULL) + window_update_focus(c->session->curw->window); server_redraw_client(c); }