mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-14 08:21:27 -04:00
term: rename refresh_prohibited -> application_synchronized_updates
This commit is contained in:
parent
84f836c0c8
commit
cb8a0260f3
3 changed files with 7 additions and 7 deletions
10
render.c
10
render.c
|
|
@ -1193,7 +1193,7 @@ fdm_hook_refresh_pending_terminals(struct fdm *fdm, void *data)
|
||||||
if (!term->render.refresh_needed)
|
if (!term->render.refresh_needed)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (term->render.refresh_prohibited)
|
if (term->render.application_synchronized_updates)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
assert(term->window->is_configured);
|
assert(term->window->is_configured);
|
||||||
|
|
@ -1244,19 +1244,19 @@ render_refresh(struct terminal *term)
|
||||||
void
|
void
|
||||||
render_disable_refresh(struct terminal *term)
|
render_disable_refresh(struct terminal *term)
|
||||||
{
|
{
|
||||||
if (term->render.refresh_prohibited)
|
if (term->render.application_synchronized_updates)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
term->render.refresh_prohibited = true;
|
term->render.application_synchronized_updates = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
render_enable_refresh(struct terminal *term)
|
render_enable_refresh(struct terminal *term)
|
||||||
{
|
{
|
||||||
if (!term->render.refresh_prohibited)
|
if (!term->render.application_synchronized_updates)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
term->render.refresh_prohibited = false;
|
term->render.application_synchronized_updates = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
|
|
|
||||||
|
|
@ -186,7 +186,7 @@ fdm_ptmx(struct fdm *fdm, int fd, int events, void *data)
|
||||||
* has any effect when the renderer is idle.
|
* has any effect when the renderer is idle.
|
||||||
*/
|
*/
|
||||||
if (term->window->frame_callback == NULL) {
|
if (term->window->frame_callback == NULL) {
|
||||||
if (term->render.refresh_prohibited) {
|
if (term->render.application_synchronized_updates) {
|
||||||
timerfd_settime(
|
timerfd_settime(
|
||||||
term->delayed_render_timer.lower_fd, 0,
|
term->delayed_render_timer.lower_fd, 0,
|
||||||
&(struct itimerspec){{0}}, NULL);
|
&(struct itimerspec){{0}}, NULL);
|
||||||
|
|
|
||||||
|
|
@ -292,7 +292,7 @@ struct terminal {
|
||||||
bool refresh_needed; /* Terminal needs to be re-rendered, as soon-as-possible */
|
bool refresh_needed; /* Terminal needs to be re-rendered, as soon-as-possible */
|
||||||
int scrollback_lines; /* Number of scrollback lines, from conf (TODO: move out from render struct?) */
|
int scrollback_lines; /* Number of scrollback lines, from conf (TODO: move out from render struct?) */
|
||||||
|
|
||||||
bool refresh_prohibited;
|
bool application_synchronized_updates;
|
||||||
/* Render threads + synchronization primitives */
|
/* Render threads + synchronization primitives */
|
||||||
struct {
|
struct {
|
||||||
size_t count;
|
size_t count;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue