aboutsummaryrefslogtreecommitdiff
path: root/render.c
diff options
context:
space:
mode:
Diffstat (limited to 'render.c')
-rw-r--r--render.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/render.c b/render.c
index a7297412..d9cd1bca 100644
--- a/render.c
+++ b/render.c
@@ -759,6 +759,18 @@ render_margin(struct terminal *term, struct buffer *buf,
if (term->render.urgency)
render_urgency(term, buf);
+ /* Ensure the updated regions are copied to the next frame's
+ * buffer when we're double buffering */
+ pixman_region32_union_rect(
+ &buf->dirty, &buf->dirty, 0, 0, term->width, term->margins.top);
+ pixman_region32_union_rect(
+ &buf->dirty, &buf->dirty, 0, bmargin, term->width, term->margins.bottom);
+ pixman_region32_union_rect(
+ &buf->dirty, &buf->dirty, 0, 0, term->margins.left, term->height);
+ pixman_region32_union_rect(
+ &buf->dirty, &buf->dirty,
+ rmargin, 0, term->margins.right, term->height);
+
if (apply_damage) {
/* Top */
wl_surface_damage_buffer(