Do not update mode until actually drawing something.

This commit is contained in:
Nicholas Marriott
2020-04-24 12:14:53 +01:00
parent ae73fd363b
commit a477c03ad5
3 changed files with 4 additions and 3 deletions

3
tty.c
View File

@ -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))