aboutsummaryrefslogtreecommitdiff
path: root/terminal.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-01-12 11:40:42 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-01-12 11:40:42 +0000
commitafa1dbb7cc98277d8ee22e4bc5a2b3ee2c774662 (patch)
tree09b8b63c7e8f7a2ddbf63c8475e7571873dd63c8 /terminal.h
parentrender: rename render_{enable,disable}_refresh() (diff)
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.
Diffstat (limited to 'terminal.h')
-rw-r--r--terminal.h6
1 files changed, 5 insertions, 1 deletions
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;