mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-16 05:34:00 -04:00
render: move local static variables into the terminal struct
This commit is contained in:
parent
4838763d18
commit
f93384b9c9
2 changed files with 36 additions and 31 deletions
10
terminal.h
10
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;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue