render: attach buffer just before commit

This commit is contained in:
Daniel Eklöf 2020-03-24 17:45:38 +01:00
parent 9a3e97afa7
commit b08238a1a1
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -1330,8 +1330,8 @@ grid_render(struct terminal *term)
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);
wl_surface_attach(term->window->surface, buf->wl_buf, 0, 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);
#if TIME_FRAME_RENDERING