aboutsummaryrefslogtreecommitdiff
path: root/terminal.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-07-24 18:21:41 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-07-24 18:21:41 +0000
commitf93384b9c912062d026ec75fe79f4fa9b6f470a2 (patch)
treeafa0d237599f79c64d1ba9b587c7341739fc4cce /terminal.h
parentrender: move frame_callback to term.render (diff)
render: move local static variables into the terminal struct
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;
};