Skip to content

Commit

Permalink
Fix issue with moving maximized window in macOS
Browse files Browse the repository at this point in the history
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 godotengine#78758.

(cherry picked from commit d78cb43)
  • Loading branch information
Jiali-Qiu authored and akien-mga committed Apr 8, 2024
1 parent 61565d2 commit 8bfe88f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platform/macos/display_server_macos.mm
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 8bfe88f

Please sign in to comment.