diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2020-04-24 12:14:53 +0100 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2020-04-24 12:14:53 +0100 |
commit | a477c03ad59fb1487881df5c6be135dde4765133 (patch) | |
tree | 0c41ad7f29c1ff9a6d5fd8fb0a32544222dd4a9b /tty.c | |
parent | ae73fd363b23ab3b20e8b8d45a8302ac38ff23d7 (diff) | |
download | rtmux-a477c03ad59fb1487881df5c6be135dde4765133.tar.gz rtmux-a477c03ad59fb1487881df5c6be135dde4765133.tar.bz2 rtmux-a477c03ad59fb1487881df5c6be135dde4765133.zip |
Do not update mode until actually drawing something.
Diffstat (limited to 'tty.c')
-rw-r--r-- | tty.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -676,7 +676,8 @@ tty_update_mode(struct tty *tty, int mode, struct screen *s) mode &= ~MODE_CURSOR; changed = mode ^ tty->mode; - log_debug("%s: update mode %x to %x", c->name, tty->mode, mode); + if (changed != 0) + log_debug("%s: update mode %x to %x", c->name, tty->mode, mode); if (changed & MODE_BLINKING) { if (tty_term_has(tty->term, TTYC_CVVIS)) |