mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Merge pull request #46516 from HaSa1002/scrollcontainer-embed
Fix Window returning `INVALID_WINDOW_ID` when being embedded
This commit is contained in:
commit
bc6713ef50
1 changed files with 3 additions and 0 deletions
|
|
@ -826,6 +826,9 @@ bool Window::is_using_font_oversampling() const {
|
||||||
}
|
}
|
||||||
|
|
||||||
DisplayServer::WindowID Window::get_window_id() const {
|
DisplayServer::WindowID Window::get_window_id() const {
|
||||||
|
if (embedder) {
|
||||||
|
return parent->get_window_id();
|
||||||
|
}
|
||||||
return window_id;
|
return window_id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue