From a97db7fad63c9c8db338209719cb686a1b273309 Mon Sep 17 00:00:00 2001 From: Johannes Date: Mon, 1 Mar 2021 00:12:20 +0100 Subject: Fix Window.get_window_id() returning -1 when embedded --- scene/main/window.cpp | 3 +++ 1 file changed, 3 insertions(+) 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; } -- cgit v1.2.3