From 5c4462281ef644d30d118893e5c9afcb998d3842 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 18 Apr 2019 09:58:09 +0530 Subject: [PATCH] Cocoa: Upstream fix for mouse hover detection https://github.com/glfw/glfw/commit/0e74265426591a9b1e61deef224f920e3b54fd01 --- glfw/cocoa_window.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)