Skip to content

Commit 454b3eb

Browse files
committed
examples/fruit: Make draw logic act on RedrawRequested instead of Close again
It seems rust-windowing#132 contains a copy-paste typo to trigger draw logic on `CloseRequested` instead of on `RedrawRequested`. Signed-off-by: Marijn Suijten <marijns95@gmail.com>
1 parent c2ec494 commit 454b3eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/fruit.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ fn main() {
4141
match event {
4242
Event::WindowEvent {
4343
window_id,
44-
event: WindowEvent::CloseRequested,
44+
event: WindowEvent::RedrawRequested,
4545
} if window_id == window.id() => {
4646
surface
4747
.resize(

0 commit comments

Comments
 (0)