Cocoa: Upstream fix for mouse hover detection

https://github.com/glfw/glfw/commit/0e74265426591a9b1e61deef224f920e3b54fd01
This commit is contained in:
Kovid Goyal
2019-04-18 09:58:09 +05:30
parent 91d94f262c
commit 5c4462281e
+2 -2
View File
@@ -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)