diff options
author | nicm <nicm> | 2020-04-20 15:49:05 +0000 |
---|---|---|
committer | nicm <nicm> | 2020-04-20 15:49:05 +0000 |
commit | 4a5182e6658907f876581fbcf4c774bf86d0d953 (patch) | |
tree | 169e4cf372e0499f680882cdc1bf9287c29611ae /screen-write.c | |
parent | 117ec1b2e603c2692ab564947b099ec79a20150f (diff) | |
download | rtmux-4a5182e6658907f876581fbcf4c774bf86d0d953.tar.gz rtmux-4a5182e6658907f876581fbcf4c774bf86d0d953.tar.bz2 rtmux-4a5182e6658907f876581fbcf4c774bf86d0d953.zip |
Always start sync for output in panes that are not the active pane.
Diffstat (limited to 'screen-write.c')
-rw-r--r-- | screen-write.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/screen-write.c b/screen-write.c index 042f2fa8..98a4a701 100644 --- a/screen-write.c +++ b/screen-write.c @@ -118,7 +118,9 @@ screen_write_initctx(struct screen_write_ctx *ctx, struct tty_ctx *ttyctx, ttyctx->orlower = s->rlower; ttyctx->orupper = s->rupper; - if (sync && !ctx->sync && ttyctx->wp != NULL) { + if (ctx->wp != NULL && + !ctx->sync && + (sync || ctx->wp != ctx->wp->window->active)) { tty_write(tty_cmd_syncstart, ttyctx); ctx->sync = 1; } |