mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 21:05:58 +01:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue