aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-01-12 11:25:58 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-01-12 11:25:58 +0000
commitcb8a0260f347cd73c7942030aa2bd12f9355ab17 (patch)
tree89020a05ee1eaa7690c46dce823c0bd1b70da447
parentterm: ptmx: cancel, and don't re-arm, delay timers when refresh has been disabled (diff)
term: rename refresh_prohibited -> application_synchronized_updates
-rw-r--r--render.c10
-rw-r--r--terminal.c2
-rw-r--r--terminal.h2
3 files changed, 7 insertions, 7 deletions
diff --git a/render.c b/render.c
index 26da8d83..f7841d8d 100644
--- a/render.c
+++ b/render.c
@@ -1193,7 +1193,7 @@ fdm_hook_refresh_pending_terminals(struct fdm *fdm, void *data)
if (!term->render.refresh_needed)
continue;
- if (term->render.refresh_prohibited)
+ if (term->render.application_synchronized_updates)
continue;
assert(term->window->is_configured);
@@ -1244,19 +1244,19 @@ render_refresh(struct terminal *term)
void
render_disable_refresh(struct terminal *term)
{
- if (term->render.refresh_prohibited)
+ if (term->render.application_synchronized_updates)
return;
- term->render.refresh_prohibited = true;
+ term->render.application_synchronized_updates = true;
}
void
render_enable_refresh(struct terminal *term)
{
- if (!term->render.refresh_prohibited)
+ if (!term->render.application_synchronized_updates)
return;
- term->render.refresh_prohibited = false;
+ term->render.application_synchronized_updates = false;
}
bool
diff --git a/terminal.c b/terminal.c
index db1ba1fa..afd004de 100644
--- a/terminal.c
+++ b/terminal.c
@@ -186,7 +186,7 @@ fdm_ptmx(struct fdm *fdm, int fd, int events, void *data)
* has any effect when the renderer is idle.
*/
if (term->window->frame_callback == NULL) {
- if (term->render.refresh_prohibited) {
+ if (term->render.application_synchronized_updates) {
timerfd_settime(
term->delayed_render_timer.lower_fd, 0,
&(struct itimerspec){{0}}, NULL);
diff --git a/terminal.h b/terminal.h
index 0296ff66..83468e5f 100644
--- a/terminal.h
+++ b/terminal.h
@@ -292,7 +292,7 @@ struct terminal {
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?) */
- bool refresh_prohibited;
+ bool application_synchronized_updates;
/* Render threads + synchronization primitives */
struct {
size_t count;