From afa1dbb7cc98277d8ee22e4bc5a2b3ee2c774662 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Sun, 12 Jan 2020 12:40:42 +0100 Subject: render: add a timeout for application synchronized updates This ensures we can recover from a crashing (or bad behaving) application that sends a BSU but then never sends an ESU. --- terminal.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'terminal.h') diff --git a/terminal.h b/terminal.h index 83468e5f..9bb335dd 100644 --- a/terminal.h +++ b/terminal.h @@ -292,7 +292,11 @@ struct terminal { bool refresh_needed; /* Terminal needs to be re-rendered, as soon-as-possible */ int scrollback_lines; /* Number of scrollback lines, from conf (TODO: move out from render struct?) */ - bool application_synchronized_updates; + struct { + bool enabled; + int timer_fd; + } application_synchronized_updates; + /* Render threads + synchronization primitives */ struct { size_t count; -- cgit v1.3