Skip to content

Commit d78cb43

Browse files
committed
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 godotengine#78758.
1 parent 29b3d9e commit d78cb43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

platform/macos/display_server_macos.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1995,7 +1995,7 @@
19951995
ERR_FAIL_COND(!windows.has(p_window));
19961996
WindowData &wd = windows[p_window];
19971997

1998-
if (NSEqualRects([wd.window_object frame], [[wd.window_object screen] visibleFrame])) {
1998+
if (wd.fullscreen) {
19991999
return;
20002000
}
20012001

0 commit comments

Comments
 (0)