mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
fix compile after pcwalton's multi-event handling PR
This commit is contained in:
parent
f53fc1900d
commit
25f87aa8ab
1 changed files with 8 additions and 3 deletions
|
@ -206,11 +206,16 @@ pub fn update() {
|
||||||
if browser.downcast().callback_executed.get() == false {
|
if browser.downcast().callback_executed.get() == false {
|
||||||
browser_callback_after_created(browser.clone());
|
browser_callback_after_created(browser.clone());
|
||||||
}
|
}
|
||||||
let event = match browser.downcast().window {
|
let mut events = match browser.downcast().window {
|
||||||
Some(ref win) => win.wait_events(),
|
Some(ref win) => win.wait_events(),
|
||||||
None => WindowEvent::Idle
|
None => vec![WindowEvent::Idle]
|
||||||
};
|
};
|
||||||
browser.send_window_event(event);
|
loop {
|
||||||
|
match events.pop() {
|
||||||
|
Some(event) => browser.send_window_event(event),
|
||||||
|
None => break
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue