backend/wayland: re-use cursor wl_buffers

We were importing cursor buffers as wl_buffers over and over again.
Instead, only import these once.
This commit is contained in:
Simon Ser 2021-01-04 12:55:40 +01:00
parent 198560fc1f
commit 7febdc7334

View file

@ -450,7 +450,7 @@ static bool output_set_cursor(struct wlr_output *wlr_output,
wlr_egl_unset_current(&output->backend->egl); wlr_egl_unset_current(&output->backend->egl);
struct wlr_wl_buffer *buffer = struct wlr_wl_buffer *buffer =
create_wl_buffer(output->backend, wlr_buffer); get_or_create_wl_buffer(output->backend, wlr_buffer);
if (buffer == NULL) { if (buffer == NULL) {
return false; return false;
} }