Accept drags based on mime types in drag event callback

Fixes #9456
This commit is contained in:
copilot-swe-agent[bot]
2026-02-02 15:24:46 +00:00
committed by Kovid Goyal
parent fa6c76d3e3
commit 6744183027
8 changed files with 118 additions and 36 deletions

2
glfw/internal.h vendored
View File

@@ -822,7 +822,7 @@ void _glfwInputMouseClick(_GLFWwindow* window, int button, int action, int mods)
void _glfwInputCursorPos(_GLFWwindow* window, double xpos, double ypos);
void _glfwInputCursorEnter(_GLFWwindow* window, bool entered);
int _glfwInputDrop(_GLFWwindow* window, const char *mime, const char *text, size_t sz);
int _glfwInputDragEvent(_GLFWwindow* window, int event, double xpos, double ypos);
int _glfwInputDragEvent(_GLFWwindow* window, int event, double xpos, double ypos, const char** mime_types, int mime_count);
void _glfwInputColorScheme(GLFWColorScheme, bool);
void _glfwPlatformInputColorScheme(GLFWColorScheme);
void _glfwInputJoystick(_GLFWjoystick* js, int event);