render: move local static variables into the terminal struct

This commit is contained in:
Daniel Eklöf 2019-07-24 20:21:41 +02:00
parent 4838763d18
commit f93384b9c9
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
2 changed files with 36 additions and 31 deletions

View file

@ -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;
};