diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-07-19 11:56:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-19 11:56:06 +0200 |
commit | 035d91ed73ce5d1cea1b24c7899875188565f6c0 (patch) | |
tree | f2fff4e4233f55294d4f50a7631171e404a4b72c /platform/osx/display_server_osx.mm | |
parent | 00c0fbb8cf662c8f60958674e474a99efa190ce8 (diff) | |
parent | 7c005ba723bc546d63aac9818e8584692abec91b (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.mm | 4 |
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. |