From ad5175118b7421e998631ea1875cc3397ff08edd Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Tue, 3 Jan 2023 10:59:57 +0100 Subject: [PATCH] backend/x11: fix initial value of wlr_x11_buffer.n_busy We lock the buffer there, so we need to initialize the n_busy count to 1 as well. Closes: https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/3556 (cherry picked from commit bc8260f377b5d1b254cbd3b0eacf5e51aeb005e5) --- backend/x11/output.c | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/x11/output.c b/backend/x11/output.c index ea2d16fc9..e149403e3 100644 --- a/backend/x11/output.c +++ b/backend/x11/output.c @@ -250,6 +250,7 @@ static struct wlr_x11_buffer *create_x11_buffer(struct wlr_x11_output *output, return NULL; } buffer->buffer = wlr_buffer_lock(wlr_buffer); + buffer->n_busy = 1; buffer->pixmap = pixmap; buffer->x11 = x11; wl_list_insert(&output->buffers, &buffer->link);