diff --git a/dcs.c b/dcs.c index f8354e88..b0ff50ed 100644 --- a/dcs.c +++ b/dcs.c @@ -12,7 +12,7 @@ bsu(struct terminal *term) LOG_DBG("BSU - Begin Synchronized Update (params: %.*s)", (int)term->vt.dcs.idx, term->vt.dcs.data); - render_disable_refresh(term); + render_enable_application_synchronized_updates(term); } static void @@ -20,7 +20,8 @@ esu(struct terminal *term) { LOG_DBG("ESU - Begin Synchronized Update (params: %.*s)", (int)term->vt.dcs.idx, term->vt.dcs.data); - render_enable_refresh(term); + + render_disable_application_synchronized_updates(term); } void diff --git a/render.c b/render.c index f7841d8d..7024a50e 100644 --- a/render.c +++ b/render.c @@ -1016,7 +1016,7 @@ render_resize(struct terminal *term, int width, int height) return; /* Cancel an application initiated "Synchronized Update" */ - render_enable_refresh(term); + render_disable_application_synchronized_updates(term); term->width = width; term->height = height; @@ -1242,7 +1242,7 @@ render_refresh(struct terminal *term) } void -render_disable_refresh(struct terminal *term) +render_enable_application_synchronized_updates(struct terminal *term) { if (term->render.application_synchronized_updates) return; @@ -1251,7 +1251,7 @@ render_disable_refresh(struct terminal *term) } void -render_enable_refresh(struct terminal *term) +render_disable_application_synchronized_updates(struct terminal *term) { if (!term->render.application_synchronized_updates) return; diff --git a/render.h b/render.h index 59bae895..6a2ddafa 100644 --- a/render.h +++ b/render.h @@ -11,12 +11,13 @@ void render_destroy(struct renderer *renderer); void render_resize(struct terminal *term, int width, int height); void render_set_title(struct terminal *term, const char *title); void render_refresh(struct terminal *term); -void render_disable_refresh(struct terminal *term); -void render_enable_refresh(struct terminal *term); bool render_xcursor_set(struct terminal *term); void render_search_box(struct terminal *term); +void render_enable_application_synchronized_updates(struct terminal *term); +void render_disable_application_synchronized_updates(struct terminal *term); + struct render_worker_context { int my_id; struct terminal *term;