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.
This commit is contained in:
Daniel Eklöf 2020-01-12 12:40:42 +01:00
parent 6e474e77e5
commit afa1dbb7cc
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
3 changed files with 60 additions and 8 deletions

View file

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