From a76293fa407cfad320946bf931b3e981c9181024 Mon Sep 17 00:00:00 2001 From: Florian Albrechtskirchinger Date: Fri, 10 Jun 2022 13:07:54 +0200 Subject: [PATCH] Add GLFW_DND_DRAGGING window attribute --- src/internal.h | 1 + src/window.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/internal.h b/src/internal.h index 24be9c53..a23c97c0 100644 --- a/src/internal.h +++ b/src/internal.h @@ -541,6 +541,7 @@ struct _GLFWwindow GLFWbool floating; GLFWbool focusOnShow; GLFWbool mousePassthrough; + GLFWbool dndDragging; GLFWbool shouldClose; void* userPointer; GLFWbool doublebuffer; diff --git a/src/window.c b/src/window.c index ebbc6dca..8425c3c1 100644 --- a/src/window.c +++ b/src/window.c @@ -856,6 +856,8 @@ GLFWAPI int glfwGetWindowAttrib(GLFWwindow* handle, int attrib) return window->focusOnShow; case GLFW_MOUSE_PASSTHROUGH: return window->mousePassthrough; + case GLFW_DND_DRAGGING: + return window->dndDragging; case GLFW_TRANSPARENT_FRAMEBUFFER: return _glfw.platform.framebufferTransparent(window); case GLFW_RESIZABLE: