mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
render: add margins to buffer’s dirty region when rendering margins
This commit is contained in:
parent
945a346596
commit
51dec651f4
1 changed files with 12 additions and 0 deletions
12
render.c
12
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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue