diff --git a/ports/glutin/window.rs b/ports/glutin/window.rs index f22fab79902..a01987ee1f7 100644 --- a/ports/glutin/window.rs +++ b/ports/glutin/window.rs @@ -228,6 +228,9 @@ impl Window { Event::Refresh => { self.event_queue.borrow_mut().push(WindowEvent::Refresh); } + Event::Closed => { + return true + } _ => {} }