render: doh! flush the last surface damage *outside* of the rendering loop

This commit is contained in:
Daniel Eklöf 2020-07-13 14:18:43 +02:00
parent 74c3b4be1a
commit 96f480b14d
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -1463,6 +1463,7 @@ grid_render(struct terminal *term)
int cursor_col = cursor.row == r ? cursor.col : -1; int cursor_col = cursor.row == r ? cursor.col : -1;
render_row(term, buf->pix[0], row, r, cursor_col); render_row(term, buf->pix[0], row, r, cursor_col);
} }
}
if (first_dirty_row >= 0) { if (first_dirty_row >= 0) {
wl_surface_damage_buffer( wl_surface_damage_buffer(
@ -1472,7 +1473,6 @@ grid_render(struct terminal *term)
term->width - term->margins.left - term->margins.right, term->width - term->margins.left - term->margins.right,
(term->rows - first_dirty_row) * term->cell_height); (term->rows - first_dirty_row) * term->cell_height);
} }
}
/* Signal workers the frame is done */ /* Signal workers the frame is done */
if (term->render.workers.count > 0) { if (term->render.workers.count > 0) {