From 5ad62fff05064a6a025a9b947ebab05ed7770e6c Mon Sep 17 00:00:00 2001 From: tcmal Date: Sun, 25 Aug 2024 17:44:21 +0100 Subject: feat(render): handle window resize and close events again --- examples/render-bsp/src/main.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'examples') diff --git a/examples/render-bsp/src/main.rs b/examples/render-bsp/src/main.rs index 4c7ef03..b18d7f2 100644 --- a/examples/render-bsp/src/main.rs +++ b/examples/render-bsp/src/main.rs @@ -76,7 +76,9 @@ fn main() { } Event::RedrawRequested(_) => session.do_update(), _ => { - tx.send(WindowEvent::from(&event)).unwrap(); + if let Some(we) = WindowEvent::from(&event) { + tx.send(we).unwrap(); + } } } -- cgit v1.2.3