Merge pull request #46516 from HaSa1002/scrollcontainer-embed

Fix Window returning `INVALID_WINDOW_ID` when being embedded
This commit is contained in:
Rémi Verschelde 2021-03-05 13:46:44 +01:00 committed by GitHub
commit bc6713ef50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -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;
}