diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2020-05-14 13:18:05 +0100 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2020-05-14 13:18:05 +0100 |
commit | 09a66451ce3df94120bb7d8486c89158bc5b85c6 (patch) | |
tree | 7284e9547c2588cc947ffde4b430f84c2b15a7ec /screen-write.c | |
parent | 0bdbf47ef946b3535cc32b45ea8d971de5baddb5 (diff) | |
download | rtmux-09a66451ce3df94120bb7d8486c89158bc5b85c6.tar.gz rtmux-09a66451ce3df94120bb7d8486c89158bc5b85c6.tar.bz2 rtmux-09a66451ce3df94120bb7d8486c89158bc5b85c6.zip |
Add screen write flags instead of individual bits and fix line length
calculation with padding.
Diffstat (limited to 'screen-write.c')
-rw-r--r-- | screen-write.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/screen-write.c b/screen-write.c index 9571cbec..062a2929 100644 --- a/screen-write.c +++ b/screen-write.c @@ -184,10 +184,10 @@ screen_write_initctx(struct screen_write_ctx *ctx, struct tty_ctx *ttyctx, } if (ctx->wp != NULL && - !ctx->sync && + (~ctx->flags & SCREEN_WRITE_SYNC) && (sync || ctx->wp != ctx->wp->window->active)) { tty_write(tty_cmd_syncstart, ttyctx); - ctx->sync = 1; + ctx->flags |= SCREEN_WRITE_SYNC; } } |