Skip to content

Commit

Permalink
Do not update focus on client's without a session.
Browse files Browse the repository at this point in the history
  • Loading branch information
nicm committed Jan 17, 2025
1 parent 31e8d46 commit 9260f5d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server-client.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 9260f5d

Please sign in to comment.