Skip to content
Myr

wayland: don’t commit buffer if we already have a pending commit

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Daniel Eklöf · committed by Daniel Eklöf · parent a32a026 · Browse files · 1 file+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:wayland.c+2 added-2 removed
1473 unmodified lines
1474 pixman_color_t transparent = {0};1475 pixman_image_fill_rectangles(1476 PIXMAN_OP_SRC, buf->pix, &transparent,1477 1, &(pixman_rectangle16_t){0, 0, wayl->width, wayl->height});1478 commit_buffer(wayl, buf);1479 return;1478 goto commit;1479 }14801481 render_set_subpixel(wayl->render, wayl->subpixel);1482
7 unmodified lines
1490#if defined(FUZZEL_ENABLE_CAIRO)1491 cairo_surface_flush(buf->cairo_surface);1492#endif14931494commit:1495 if (wayl->frame_cb != NULL) {1496 /* There's already a frame being drawn - delay current frame1497 * (overwriting any previous pending frame) */1498
367 unmodified lines