term: more comments in the 'render' sub-struct

This commit is contained in:
Daniel Eklöf 2020-01-04 19:56:59 +01:00
parent 647a299315
commit 1060a4250b
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -283,9 +283,10 @@ struct terminal {
bool visual_focus; bool visual_focus;
struct { struct {
bool refresh_needed; bool refresh_needed; /* Terminal needs to be re-rendered, as soon-as-possible */
int scrollback_lines; int scrollback_lines; /* Number of scrollback lines, from conf (TODO: move out from render struct?) */
/* Render threads + synchronization primitives */
struct { struct {
size_t count; size_t count;
sem_t start; sem_t start;
@ -304,7 +305,7 @@ struct terminal {
struct cell *cell; /* For easy access to content */ struct cell *cell; /* For easy access to content */
} last_cursor; } last_cursor;
bool pending; bool pending; /* Need to re-render again, after next frame-callback */
struct buffer *last_buf; /* Buffer we rendered to last time */ struct buffer *last_buf; /* Buffer we rendered to last time */
bool was_flashing; /* Flash was active last time we rendered */ bool was_flashing; /* Flash was active last time we rendered */
bool was_searching; bool was_searching;