Quit when the glutin window closes

This commit is contained in:
Matt Brubeck 2015-08-25 13:32:35 -07:00
parent 524b02dbf7
commit 54e8374b6c

View file

@ -228,6 +228,9 @@ impl Window {
Event::Refresh => { Event::Refresh => {
self.event_queue.borrow_mut().push(WindowEvent::Refresh); self.event_queue.borrow_mut().push(WindowEvent::Refresh);
} }
Event::Closed => {
return true
}
_ => {} _ => {}
} }