mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-11 05:33:55 -04:00
render: attach buffer just before commit
This commit is contained in:
parent
9a3e97afa7
commit
b08238a1a1
1 changed files with 3 additions and 1 deletions
4
render.c
4
render.c
|
|
@ -1330,8 +1330,8 @@ grid_render(struct terminal *term)
|
||||||
tll_remove(term->grid->scroll_damage, it);
|
tll_remove(term->grid->scroll_damage, it);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Reset clip region since scrolling may have instantiated a new pixman image */
|
||||||
pixman_image_set_clip_region(buf->pix, &clip);
|
pixman_image_set_clip_region(buf->pix, &clip);
|
||||||
wl_surface_attach(term->window->surface, buf->wl_buf, 0, 0);
|
|
||||||
|
|
||||||
if (term->render.workers.count > 0) {
|
if (term->render.workers.count > 0) {
|
||||||
|
|
||||||
|
|
@ -1485,6 +1485,8 @@ grid_render(struct terminal *term)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
wl_surface_attach(term->window->surface, buf->wl_buf, 0, 0);
|
||||||
|
quirk_kde_damage_before_attach(term->window->surface);
|
||||||
wl_surface_commit(term->window->surface);
|
wl_surface_commit(term->window->surface);
|
||||||
|
|
||||||
#if TIME_FRAME_RENDERING
|
#if TIME_FRAME_RENDERING
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue