summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorJohannes <johawitt@outlook.de>2021-03-01 00:12:20 +0100
committerJohannes <johawitt@outlook.de>2021-03-01 00:12:20 +0100
commita97db7fad63c9c8db338209719cb686a1b273309 (patch)
tree415f49d54c942f2185be5fd5ae8af6774fa7883e /scene
parentd61cd469f105d269d66c286bb1efd304a5abb0a5 (diff)
Fix Window.get_window_id() returning -1 when embedded
Diffstat (limited to 'scene')
-rw-r--r--scene/main/window.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/scene/main/window.cpp b/scene/main/window.cpp
index 8198fa41c5..66d623968c 100644
--- a/scene/main/window.cpp
+++ b/scene/main/window.cpp
@@ -826,6 +826,9 @@ bool Window::is_using_font_oversampling() const {
}
DisplayServer::WindowID Window::get_window_id() const {
+ if (embedder) {
+ return parent->get_window_id();
+ }
return window_id;
}