From a477c03ad59fb1487881df5c6be135dde4765133 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Fri, 24 Apr 2020 12:14:53 +0100 Subject: Do not update mode until actually drawing something. --- tty.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tty.c') diff --git a/tty.c b/tty.c index 548c837d..bd1c92b0 100644 --- a/tty.c +++ b/tty.c @@ -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)) -- cgit