summaryrefslogtreecommitdiff
path: root/platform/osx/display_server_osx.mm
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-07-19 11:56:06 +0200
committerGitHub <noreply@github.com>2022-07-19 11:56:06 +0200
commit035d91ed73ce5d1cea1b24c7899875188565f6c0 (patch)
treef2fff4e4233f55294d4f50a7631171e404a4b72c /platform/osx/display_server_osx.mm
parent00c0fbb8cf662c8f60958674e474a99efa190ce8 (diff)
parent7c005ba723bc546d63aac9818e8584692abec91b (diff)
Merge pull request #63191 from bruvzg/set_screen_4
Diffstat (limited to 'platform/osx/display_server_osx.mm')
-rw-r--r--platform/osx/display_server_osx.mm4
1 files changed, 4 insertions, 0 deletions
diff --git a/platform/osx/display_server_osx.mm b/platform/osx/display_server_osx.mm
index 91d64b50f0..11474dac46 100644
--- a/platform/osx/display_server_osx.mm
+++ b/platform/osx/display_server_osx.mm
@@ -2008,6 +2008,10 @@ void DisplayServerOSX::window_set_current_screen(int p_screen, WindowID p_window
ERR_FAIL_COND(!windows.has(p_window));
WindowData &wd = windows[p_window];
+ if (window_get_current_screen(p_window) == p_screen) {
+ return;
+ }
+
bool was_fullscreen = false;
if (wd.fullscreen) {
// Temporary exit fullscreen mode to move window.