mirror of https://github.com/godotengine/godot
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.
This commit is contained in:
parent
29b3d9e9e5
commit
d78cb43ec2
|
|
@ -1995,7 +1995,7 @@ void DisplayServerMacOS::window_set_position(const Point2i &p_position, WindowID
|
||||||
ERR_FAIL_COND(!windows.has(p_window));
|
ERR_FAIL_COND(!windows.has(p_window));
|
||||||
WindowData &wd = windows[p_window];
|
WindowData &wd = windows[p_window];
|
||||||
|
|
||||||
if (NSEqualRects([wd.window_object frame], [[wd.window_object screen] visibleFrame])) {
|
if (wd.fullscreen) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue