aboutsummaryrefslogtreecommitdiff
path: root/render.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-01-12 11:46:25 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-01-12 11:46:25 +0000
commit21646f00599220026e9d5bade71e47eb4359bbd7 (patch)
tree0e98915ac783a43923cf2607c4ab972c1b08ae53 /render.c
parentdcs: abort() in bsu/esu (diff)
parentterm: app sync updates: disable delayed rendering timers once only (diff)
Merge branch 'synchronized-updates'
Diffstat (limited to 'render.c')
-rw-r--r--render.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/render.c b/render.c
index 5f2aff69..ae623940 100644
--- a/render.c
+++ b/render.c
@@ -1015,6 +1015,9 @@ render_resize(struct terminal *term, int width, int height)
if (width == term->width && height == term->height && scale == term->scale)
return;
+ /* Cancel an application initiated "Synchronized Update" */
+ term_disable_application_synchronized_updates(term);
+
term->width = width;
term->height = height;
term->scale = scale;
@@ -1190,6 +1193,9 @@ fdm_hook_refresh_pending_terminals(struct fdm *fdm, void *data)
if (!term->render.refresh_needed)
continue;
+ if (term->render.application_synchronized_updates.enabled)
+ continue;
+
assert(term->window->is_configured);
term->render.refresh_needed = false;