From 8bfe88fee8df694730eec4bbf15e80ba168741fb Mon Sep 17 00:00:00 2001 From: Jiali Qiu Date: Sun, 31 Mar 2024 19:54:37 +0100 Subject: [PATCH] Fix issue with moving maximized window in macOS When opening the Godot editor and maximizing the window by double-clicking the title bar, users are unable to drag the window with the mouse. With this commit, `window_set_position` allows the maximized window to be moved by dragging it. Only the fullscreen window won't be allowed to move. Fixes #78758. (cherry picked from commit d78cb43ec2055849a0601c7aadea946366547c78) --- 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 a7686e3a37bc..c1207b36e0f8 100644 --- a/platform/macos/display_server_macos.mm +++ b/platform/macos/display_server_macos.mm @@ -3094,7 +3094,7 @@ - (void)popupAction:(id)sender { ERR_FAIL_COND(!windows.has(p_window)); WindowData &wd = windows[p_window]; - if (NSEqualRects([wd.window_object frame], [[wd.window_object screen] visibleFrame])) { + if (wd.fullscreen) { return; }