commit 4bdd491452c095ad2e253d98c3fe250ad5ffd15a
parent 2f66cea79eeaedc586f57faa0c1af32094863695
Author: Michael Forney <mforney@mforney.org>
Date: Mon, 18 Mar 2019 20:38:28 -0700
pointer: Pass WLD_FLAG_CURSOR when creating cursor buffer
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libswc/pointer.c b/libswc/pointer.c
@@ -234,7 +234,7 @@ pointer_initialize(struct pointer *pointer)
view_initialize(&pointer->cursor.view, &view_impl);
pointer->cursor.surface = NULL;
pointer->cursor.destroy_listener.notify = &handle_cursor_surface_destroy;
- pointer->cursor.buffer = wld_create_buffer(swc.drm->context, swc.drm->cursor_w, swc.drm->cursor_h, WLD_FORMAT_ARGB8888, WLD_FLAG_MAP);
+ pointer->cursor.buffer = wld_create_buffer(swc.drm->context, swc.drm->cursor_w, swc.drm->cursor_h, WLD_FORMAT_ARGB8888, WLD_FLAG_MAP | WLD_FLAG_CURSOR);
pointer->cursor.internal_buffer = NULL;
if (!pointer->cursor.buffer)