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 <marijns95@gmail.com>
This commit is contained in:
Marijn Suijten 2023-11-06 09:30:37 +01:00 committed by John Nunley
parent c2ec494336
commit 636a7148c8

View file

@ -41,7 +41,7 @@ fn main() {
match event { match event {
Event::WindowEvent { Event::WindowEvent {
window_id, window_id,
event: WindowEvent::CloseRequested, event: WindowEvent::RedrawRequested,
} if window_id == window.id() => { } if window_id == window.id() => {
surface surface
.resize( .resize(