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:
parent
198560fc1f
commit
7febdc7334
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue