mirror of
https://github.com/servo/servo.git
synced 2025-08-15 02:15:33 +01:00
add parent window setting when creating windows with glutin
needed for embedding api usage
This commit is contained in:
parent
f4381a6f1e
commit
16a9712ab7
4 changed files with 9 additions and 6 deletions
|
@ -96,7 +96,7 @@ impl ServoCefBrowser {
|
|||
let host = ServoCefBrowserHost::new(client.clone()).as_cef_interface();
|
||||
|
||||
let servo_browser = if window_info.windowless_rendering_enabled == 0 {
|
||||
let glutin_window = glutin_app::create_window();
|
||||
let glutin_window = glutin_app::create_window(window_info.parent_window as glutin_app::WindowID);
|
||||
let servo_browser = Browser::new(Some(glutin_window.clone()));
|
||||
ServoBrowser::OnScreen(servo_browser)
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue