commit 4bdd491
Michael Forney
·
2019-03-19 03:38:28 +0000 UTC
parent 2f66cea
pointer: Pass WLD_FLAG_CURSOR when creating cursor buffer
1 files changed,
+1,
-1
+1,
-1
1@@ -234,7 +234,7 @@ pointer_initialize(struct pointer *pointer)
2 view_initialize(&pointer->cursor.view, &view_impl);
3 pointer->cursor.surface = NULL;
4 pointer->cursor.destroy_listener.notify = &handle_cursor_surface_destroy;
5- pointer->cursor.buffer = wld_create_buffer(swc.drm->context, swc.drm->cursor_w, swc.drm->cursor_h, WLD_FORMAT_ARGB8888, WLD_FLAG_MAP);
6+ 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);
7 pointer->cursor.internal_buffer = NULL;
8
9 if (!pointer->cursor.buffer)