From f93384b9c912062d026ec75fe79f4fa9b6f470a2 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Wed, 24 Jul 2019 20:21:41 +0200 Subject: render: move local static variables into the terminal struct --- terminal.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'terminal.h') 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; }; -- cgit v1.3