From 606a475bb5b6de9a55e7bad758683aedd77d99e1 Mon Sep 17 00:00:00 2001 From: bruvzg <7645683+bruvzg@users.noreply.github.com> Date: Sun, 18 Feb 2024 23:53:45 +0200 Subject: [PATCH] [macOS] Ignore window decorations in confined mouse mode to match other platforms. --- platform/macos/display_server_macos.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/macos/display_server_macos.mm b/platform/macos/display_server_macos.mm index ce4c7b2e05d2..d8e546f571eb 100644 --- a/platform/macos/display_server_macos.mm +++ b/platform/macos/display_server_macos.mm @@ -2559,7 +2559,7 @@ } // Confine mouse position to the window, and update delta. - NSRect frame = [p_wd.window_object frame]; + NSRect frame = [p_wd.window_view frame]; NSPoint conf_pos = r_mpos; conf_pos.x = CLAMP(conf_pos.x + r_delta.x, 0.f, frame.size.width); conf_pos.y = CLAMP(conf_pos.y - r_delta.y, 0.f, frame.size.height);