From bc8260f377b5d1b254cbd3b0eacf5e51aeb005e5 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Tue, 3 Jan 2023 10:59:57 +0100 Subject: 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 --- backend/x11/output.c | 1 + 1 file changed, 1 insertion(+) (limited to 'backend/x11') diff --git a/backend/x11/output.c b/backend/x11/output.c index ea7ccca9..517ea85b 100644 --- a/backend/x11/output.c +++ b/backend/x11/output.c @@ -255,6 +255,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); -- cgit v1.2.3