API to change image for drag in progress

This commit is contained in:
Kovid Goyal
2026-02-22 09:10:26 +05:30
parent 8ad22e7859
commit 6506ce1e91
7 changed files with 14 additions and 1 deletions

1
glfw/input.c vendored
View File

@@ -1166,6 +1166,7 @@ glfwStartDrag(GLFWwindow* handle, const GLFWDragSourceItem *items, size_t item_c
assert(window != NULL);
_GLFW_REQUIRE_INIT_OR_RETURN(EINVAL);
if (operations == -1) return _glfwPlatformDragDataReady(items[0].mime_type);
if (operations == -2) return _glfwPlatformChangeDragImage(thumbnail);
_glfwFreeDragSourceData();
_glfw.drag.instance_id++;
if (!items || !item_count) return 0;