Cleanup previous PR

Use a single wl_surface for the drag icon. Whther it is attached to the
top level drag or not is determined based on availability.
This commit is contained in:
Kovid Goyal
2026-02-22 15:36:10 +05:30
parent accee908aa
commit b737eaad65
10 changed files with 54 additions and 67 deletions

2
glfw/input.c vendored
View File

@@ -1166,7 +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, item_count);
if (operations == -2) return _glfwPlatformChangeDragImage(thumbnail);
_glfwFreeDragSourceData();
_glfw.drag.instance_id++;
if (!items || !item_count) return 0;