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 divshekhar committed Apr 23, 2024
1 parent be4777c commit ad144e6
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
@@ -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;
}

0 comments on commit ad144e6

Please sign in to comment.