diff --git a/examples/fruit.rs b/examples/fruit.rs index 860d1bd..ba659d8 100644 --- a/examples/fruit.rs +++ b/examples/fruit.rs @@ -41,7 +41,7 @@ fn main() { match event { Event::WindowEvent { window_id, - event: WindowEvent::CloseRequested, + event: WindowEvent::RedrawRequested, } if window_id == window.id() => { surface .resize(