Win32: Fix for button release behaviour on drag

This commit is contained in:
Naveen Karuthedath 2023-12-21 13:36:46 +05:30
parent d6eff8fa70
commit 9514faf7c1

View File

@ -1773,6 +1773,7 @@ void _glfwDragWindowWin32(_GLFWwindow* window)
{ {
ReleaseCapture(); ReleaseCapture();
SendMessage(window->win32.handle, WM_NCLBUTTONDOWN, HTCAPTION, 0); SendMessage(window->win32.handle, WM_NCLBUTTONDOWN, HTCAPTION, 0);
_glfwInputMouseClick(window, GLFW_MOUSE_BUTTON_LEFT, GLFW_RELEASE, getKeyMods());
} }
void _glfwSetWindowMonitorWin32(_GLFWwindow* window, void _glfwSetWindowMonitorWin32(_GLFWwindow* window,