diff --git a/glfw/cocoa_window.m b/glfw/cocoa_window.m index 2444e8d5b..9913d8e9b 100644 --- a/glfw/cocoa_window.m +++ b/glfw/cocoa_window.m @@ -1689,8 +1689,8 @@ int _glfwPlatformWindowHovered(_GLFWwindow* window) return GLFW_FALSE; } - return NSPointInRect(point, - [window->ns.object convertRectToScreen:[window->ns.view bounds]]); + return NSMouseInRect(point, + [window->ns.object convertRectToScreen:[window->ns.view frame]], NO); } int _glfwPlatformFramebufferTransparent(_GLFWwindow* window)