mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-25 17:52:02 +02:00
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:
2
glfw/input.c
vendored
2
glfw/input.c
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user