From 454b3ebbd42a3ccfc70431ef07fc78fddb0b85e7 Mon Sep 17 00:00:00 2001 From: Marijn Suijten Date: Mon, 6 Nov 2023 09:30:37 +0100 Subject: [PATCH] examples/fruit: Make draw logic act on `RedrawRequested` instead of `Close` again It seems #132 contains a copy-paste typo to trigger draw logic on `CloseRequested` instead of on `RedrawRequested`. Signed-off-by: Marijn Suijten --- examples/fruit.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/fruit.rs b/examples/fruit.rs index 860d1bd6..ba659d81 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(