diff options
| author | Simon Ser <contact@emersion.fr> | 2023-01-03 10:59:57 +0100 | 
|---|---|---|
| committer | Simon Ser <contact@emersion.fr> | 2023-01-03 10:59:57 +0100 | 
| commit | bc8260f377b5d1b254cbd3b0eacf5e51aeb005e5 (patch) | |
| tree | 16a8d7e4b23345e090f90a1b746cd5c4535274ab /backend/x11 | |
| parent | 869af1cfbb3944d32d59a4c08ca439e7b5eaf6d2 (diff) | |
| download | wlroots-bc8260f377b5d1b254cbd3b0eacf5e51aeb005e5.tar.xz | |
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
Diffstat (limited to 'backend/x11')
| -rw-r--r-- | backend/x11/output.c | 1 | 
1 files changed, 1 insertions, 0 deletions
| 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); | 
