Merge branch '1015' into 'master'

render: use the first free swapchain slot

See merge request wlroots/wlroots!5175
This commit is contained in:
Liu Peng 2026-04-16 14:36:47 +08:00
commit c032268e92

View file

@ -90,6 +90,7 @@ struct wlr_buffer *wlr_swapchain_acquire(struct wlr_swapchain *swapchain) {
return slot_acquire(swapchain, slot);
}
free_slot = slot;
break;
}
if (free_slot == NULL) {
wlr_log(WLR_ERROR, "No free output buffer slot");