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.
  • Loading branch information
Jiali-Qiu authored and DanielSnd committed Apr 10, 2024
1 parent 7270fdc commit 6dd469d
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 @@ -1995,7 +1995,7 @@
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 6dd469d

Please sign in to comment.