From 0e74265426591a9b1e61deef224f920e3b54fd01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Camilla=20L=C3=B6wy?= Date: Mon, 15 Apr 2019 00:06:56 +0200 Subject: [PATCH] Cocoa: Fix cursor hover test --- src/cocoa_window.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cocoa_window.m b/src/cocoa_window.m index e8e40a55..eae104cd 100644 --- a/src/cocoa_window.m +++ b/src/cocoa_window.m @@ -1312,8 +1312,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); } // autoreleasepool }