diff --git a/sessionlockev/src/lib.rs b/sessionlockev/src/lib.rs index 0deb624..f1bd0e5 100644 --- a/sessionlockev/src/lib.rs +++ b/sessionlockev/src/lib.rs @@ -914,7 +914,7 @@ impl WindowState { .expect("Failed to init Wayland Source"); 'out: loop { - event_loop.dispatch(Duration::from_millis(1), self).unwrap(); + event_loop.dispatch(Duration::from_millis(1), self)?; let mut messages = Vec::new(); std::mem::swap(&mut messages, &mut self.message); for msg in messages.iter() {