Fix Window.get_window_id() returning -1 when embedded

This commit is contained in:
Johannes 2021-03-01 00:12:20 +01:00
parent d61cd469f1
commit a97db7fad6
No known key found for this signature in database
GPG Key ID: B988B760383F3A91

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