diff options
author | Simon Ser <contact@emersion.fr> | 2021-01-04 12:55:40 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2021-01-04 13:48:28 +0100 |
commit | 7febdc73345f9759a766ee3c7b17d7195192bd38 (patch) | |
tree | 6bfaeba0dd1ab2c543284cd23274f80d4af28ab5 /backend | |
parent | 198560fc1fe5e09f539c278b190eaf44b1402deb (diff) |
backend/wayland: re-use cursor wl_buffers
We were importing cursor buffers as wl_buffers over and over again.
Instead, only import these once.
Diffstat (limited to 'backend')
-rw-r--r-- | backend/wayland/output.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |