diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2019-07-24 18:21:41 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2019-07-24 18:21:41 +0000 |
| commit | f93384b9c912062d026ec75fe79f4fa9b6f470a2 (patch) | |
| tree | afa0d237599f79c64d1ba9b587c7341739fc4cce /terminal.h | |
| parent | render: 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.h | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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; }; |
