From 1252098016347a38f4a6176091da16313a94ecbe Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 29 Sep 2025 09:09:49 +0530 Subject: [PATCH] DRYer --- 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 8934c0d87..78364a10f 100644 --- a/glfw/cocoa_window.m +++ b/glfw/cocoa_window.m @@ -1929,7 +1929,7 @@ int _glfwPlatformCreateWindow(_GLFWwindow* window, const _GLFWwndconfig* wndconf void _glfwPlatformDestroyWindow(_GLFWwindow* window) { - NSWindow *w = window->ns.object; + GLFWWindow *w = window->ns.object; if (_glfw.ns.disabledCursorWindow == window) _glfw.ns.disabledCursorWindow = NULL; @@ -1950,7 +1950,7 @@ void _glfwPlatformDestroyWindow(_GLFWwindow* window) [window->ns.view release]; window->ns.view = nil; - [window->ns.object removeGLFWWindow]; + [w removeGLFWWindow]; // Workaround for macOS Tahoe where if the frame is not set to zero size // even after NSWindow::close the window remains on screen as an invisible // rectangle that intercepts mouse events and takes up space in mission