mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
ensure window protocol handling occurs during cef browser loop updating
fixes window events when using cef windowed rendering
This commit is contained in:
parent
1cd850b121
commit
ca7fc036fe
1 changed files with 5 additions and 1 deletions
|
@ -206,7 +206,11 @@ pub fn update() {
|
|||
if browser.downcast().callback_executed.get() == false {
|
||||
browser_callback_after_created(browser.clone());
|
||||
}
|
||||
browser.send_window_event(WindowEvent::Idle);
|
||||
let event = match browser.downcast().window {
|
||||
Some(ref win) => win.wait_events(),
|
||||
None => WindowEvent::Idle
|
||||
};
|
||||
browser.send_window_event(event);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue