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,