summaryrefslogtreecommitdiff
path: root/scene/main/window.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-02-12 16:46:55 +0100
committerGitHub <noreply@github.com>2022-02-12 16:46:55 +0100
commitd3a6b6daaab4c8dfb7bdf35cc2fe2145ae6c22a1 (patch)
tree0f2638ed2188d1de074dc33829c6891c1f1019cf /scene/main/window.cpp
parent498805282a61bb8bc29fa81f5bf06678293e6bfc (diff)
parent7d59b81d79236ea82c72cfa5cb6a0ee341762fc6 (diff)
Merge pull request #56953 from bruvzg/ex_wnd
Diffstat (limited to 'scene/main/window.cpp')
-rw-r--r--scene/main/window.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/scene/main/window.cpp b/scene/main/window.cpp
index b5e0e7b110..77c0fa2a48 100644
--- a/scene/main/window.cpp
+++ b/scene/main/window.cpp
@@ -255,6 +255,7 @@ void Window::_make_window() {
#endif
DisplayServer::get_singleton()->window_set_title(tr_title, window_id);
DisplayServer::get_singleton()->window_attach_instance_id(get_instance_id(), window_id);
+ DisplayServer::get_singleton()->window_set_exclusive(window_id, exclusive);
_update_window_size();
@@ -523,6 +524,10 @@ void Window::set_exclusive(bool p_exclusive) {
exclusive = p_exclusive;
+ if (!embedder && window_id != DisplayServer::INVALID_WINDOW_ID) {
+ DisplayServer::get_singleton()->window_set_exclusive(window_id, exclusive);
+ }
+
if (transient_parent) {
if (p_exclusive && is_inside_tree() && is_visible()) {
ERR_FAIL_COND_MSG(transient_parent->exclusive_child && transient_parent->exclusive_child != this, "Transient parent has another exclusive child.");