mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
auto merge of #4737 : glennw/servo/poll-events, r=kmcallister
This commit is contained in:
commit
e122d76fa9
1 changed files with 5 additions and 1 deletions
|
@ -307,7 +307,11 @@ impl Window {
|
|||
}
|
||||
}
|
||||
} else {
|
||||
for event in self.window.wait_events() {
|
||||
// GWTODO: Something has changed in the wait_events
|
||||
// behaviour in glutin. Switching to poll events
|
||||
// for now, so that things display correctly,
|
||||
// need to fix glutin / handle the changed behaviour.
|
||||
for event in self.window.poll_events() {
|
||||
close_event = self.handle_window_event(event);
|
||||
if close_event {
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue