Merge pull request #46516 from HaSa1002/scrollcontainer-embed
Fix Window returning `INVALID_WINDOW_ID` when being embedded
This commit is contained in:
commit
bc6713ef50
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue