diff options
author | Johannes <johawitt@outlook.de> | 2021-03-01 00:12:20 +0100 |
---|---|---|
committer | Johannes <johawitt@outlook.de> | 2021-03-01 00:12:20 +0100 |
commit | a97db7fad63c9c8db338209719cb686a1b273309 (patch) | |
tree | 415f49d54c942f2185be5fd5ae8af6774fa7883e | |
parent | d61cd469f105d269d66c286bb1efd304a5abb0a5 (diff) |
Fix Window.get_window_id() returning -1 when embedded
-rw-r--r-- | scene/main/window.cpp | 3 |
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; } |