aboutsummaryrefslogtreecommitdiff
path: root/terminal.h
diff options
context:
space:
mode:
Diffstat (limited to 'terminal.h')
-rw-r--r--terminal.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/terminal.h b/terminal.h
index 3731ee0d..92082d8c 100644
--- a/terminal.h
+++ b/terminal.h
@@ -331,7 +331,20 @@ struct terminal {
enum term_surface active_surface;
struct {
- bool refresh_needed; /* Terminal needs to be re-rendered, as soon-as-possible */
+ /* Scheduled for rendering, as soon-as-possible */
+ struct {
+ bool grid;
+ bool csd;
+ bool search;
+ } refresh;
+
+ /* Scheduled for rendering, in the next frame callback */
+ struct {
+ bool grid;
+ bool csd;
+ bool search;
+ } pending;
+
int scrollback_lines; /* Number of scrollback lines, from conf (TODO: move out from render struct?) */
struct {
@@ -358,7 +371,6 @@ struct terminal {
struct cell *cell; /* For easy access to content */
} last_cursor;
- bool pending; /* Need to re-render again, after next frame-callback */
struct buffer *last_buf; /* Buffer we rendered to last time */
bool was_flashing; /* Flash was active last time we rendered */
bool was_searching;