summaryrefslogtreecommitdiffstats
path: root/screen-write.c
diff options
context:
space:
mode:
authornicm <nicm>2023-03-27 08:31:32 +0000
committernicm <nicm>2023-03-27 08:31:32 +0000
commitd73078838dc9cadb42e0f4762847806076684cc8 (patch)
treea6ea4c225ae3a29a837019304499b222c8e96945 /screen-write.c
parenta9ac61469175e45c8ba58ae0360306aa06c0cd59 (diff)
For passthrough, don't write to clients attached to different sessions,
based on a fix from Sergei Grechanik.
Diffstat (limited to 'screen-write.c')
-rw-r--r--screen-write.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/screen-write.c b/screen-write.c
index b82a43dc..8a440052 100644
--- a/screen-write.c
+++ b/screen-write.c
@@ -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)