mirror of
https://github.com/servo/servo.git
synced 2025-08-08 23:15:33 +01:00
Create initial browser id for compositor on startup.
This commit is contained in:
parent
74f1eb199e
commit
6b50d7025c
7 changed files with 47 additions and 39 deletions
|
@ -306,7 +306,7 @@ pub fn init(
|
|||
SERVO.with(|s| {
|
||||
let mut servo_glue = ServoGlue {
|
||||
webrender_surfman,
|
||||
servo,
|
||||
servo: servo.servo,
|
||||
batch_mode: false,
|
||||
callbacks: window_callbacks,
|
||||
browser_id: None,
|
||||
|
@ -314,8 +314,7 @@ pub fn init(
|
|||
events: vec![],
|
||||
context_menu_sender: None,
|
||||
};
|
||||
let browser_id = BrowserId::new();
|
||||
let _ = servo_glue.process_event(WindowEvent::NewBrowser(url, browser_id));
|
||||
let _ = servo_glue.process_event(WindowEvent::NewBrowser(url, servo.browser_id));
|
||||
*s.borrow_mut() = Some(servo_glue);
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue