Fix Window.get_window_id() returning -1 when embedded
This commit is contained in:
parent
d61cd469f1
commit
a97db7fad6
@ -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
Block a user