aboutsummaryrefslogtreecommitdiff
path: root/terminal.h
diff options
context:
space:
mode:
Diffstat (limited to 'terminal.h')
-rw-r--r--terminal.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/terminal.h b/terminal.h
index 66da13f5..c6227d26 100644
--- a/terminal.h
+++ b/terminal.h
@@ -323,6 +323,16 @@ struct terminal {
struct wayland wl;
struct {
struct wl_callback *frame_callback;
+
+ /* Last rendered cursor position */
+ struct {
+ struct coord actual; /* Absolute */
+ struct coord in_view; /* Offset by view */
+ const struct cell *cell; /* For easy access to content */
+ } last_cursor;
+
+ struct buffer *last_buf; /* Buffer we rendered to last time */
+ bool was_flashing; /* Flash was active last time we rendered */
} render;
};