From 6c8b034affae251cdb6645633c1b965c67e78850 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Mon, 14 Dec 2020 19:05:03 +0100 Subject: term: enabling application synchronized updates clear pending grid refresh MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This fixes issues with de-synchronized frames being rendered; we may have scheduled a redraw earlier, that hasn’t yet triggered (probably because we’re waiting for a frame callback), when we enable application synchronized updates. This means we risk rendering a partially updated state when the frame callback finally arrives, if the application hasn’t yet ended its synchronized update. --- terminal.h | 1 - 1 file changed, 1 deletion(-) (limited to 'terminal.h') diff --git a/terminal.h b/terminal.h index 0b0e2685..8708661f 100644 --- a/terminal.h +++ b/terminal.h @@ -410,7 +410,6 @@ struct terminal { struct { bool enabled; int timer_fd; - bool flipped; } app_sync_updates; /* Render threads + synchronization primitives */ -- cgit v1.3