Skip to content

Commit

Permalink
Merge pull request godotengine#46516 from HaSa1002/scrollcontainer-embed
Browse files Browse the repository at this point in the history
Fix Window returning `INVALID_WINDOW_ID` when being embedded
  • Loading branch information
akien-mga authored Mar 5, 2021
2 parents bd9799e + a97db7f commit bc6713e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scene/main/window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit bc6713e

Please sign in to comment.