From 86bdc3cecdcd67a11176b48e15b67548fca204ff Mon Sep 17 00:00:00 2001 From: Gabriel Majeri Date: Sat, 25 Aug 2018 11:06:30 +0300 Subject: [PATCH] Fix closing the examples --- examples/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/src/lib.rs b/examples/src/lib.rs index a197f4c..497e090 100644 --- a/examples/src/lib.rs +++ b/examples/src/lib.rs @@ -253,7 +253,7 @@ impl ExampleBase { ControlFlow::Continue } } - WindowEvent::Destroyed => winit::ControlFlow::Break, + WindowEvent::CloseRequested => winit::ControlFlow::Break, _ => ControlFlow::Continue, }, _ => ControlFlow::Continue,