For passthrough, don't write to clients attached to different sessions,

based on a fix from Sergei Grechanik.
This commit is contained in:
nicm
2023-03-27 08:31:32 +00:00
parent a9ac614691
commit d73078838d
2 changed files with 20 additions and 13 deletions

View File

@ -132,6 +132,12 @@ screen_write_set_client_cb(struct tty_ctx *ttyctx, struct client *c)
{
struct window_pane *wp = ttyctx->arg;
if (ttyctx->allow_invisible_panes) {
if (session_has(c->session, wp->window))
return (1);
return (0);
}
if (c->session->curw->window != wp->window)
return (0);
if (wp->layout_cell == NULL)