From 54e8374b6c0a46bce11eaeabadae3698b2c794c2 Mon Sep 17 00:00:00 2001 From: Matt Brubeck Date: Tue, 25 Aug 2015 13:32:35 -0700 Subject: [PATCH] Quit when the glutin window closes --- ports/glutin/window.rs | 3 +++ 1 file changed, 3 insertions(+) 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 + } _ => {} }