Cocoa: Upstream fix for mouse hover detection

0e74265426
This commit is contained in:
Kovid Goyal 2019-04-18 09:58:09 +05:30
parent 91d94f262c
commit 5c4462281e
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

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)