diff --git a/src/platform/linux/x11/mod.rs b/src/platform/linux/x11/mod.rs index 9f9f06f3..7535e42e 100644 --- a/src/platform/linux/x11/mod.rs +++ b/src/platform/linux/x11/mod.rs @@ -126,6 +126,7 @@ impl EventsLoop { pub fn poll_events(&self, mut callback: F) where F: FnMut(Event) { + self.interrupted.store(false, ::std::sync::atomic::Ordering::Relaxed); let xlib = &self.display.xlib; let mut xev = unsafe { mem::uninitialized() };