From 7febdc73345f9759a766ee3c7b17d7195192bd38 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Mon, 4 Jan 2021 12:55:40 +0100 Subject: [PATCH] backend/wayland: re-use cursor wl_buffers We were importing cursor buffers as wl_buffers over and over again. Instead, only import these once. --- backend/wayland/output.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/wayland/output.c b/backend/wayland/output.c index 6bc84dcb..633e9a59 100644 --- a/backend/wayland/output.c +++ b/backend/wayland/output.c @@ -450,7 +450,7 @@ static bool output_set_cursor(struct wlr_output *wlr_output, wlr_egl_unset_current(&output->backend->egl); struct wlr_wl_buffer *buffer = - create_wl_buffer(output->backend, wlr_buffer); + get_or_create_wl_buffer(output->backend, wlr_buffer); if (buffer == NULL) { return false; }