diff --git a/CHANGELOG.md b/CHANGELOG.md index 5a624693..bc907c40 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ - Implemented `Moved` event on macOS. - On Windows, implemented all variants of `DeviceEvent` other than `Text`. Mouse `DeviceEvent`s are now received even if the window isn't in the foreground. - `DeviceId` on Windows is no longer a unit struct, and now contains a `u32`. For `WindowEvent`s, this will always be 0, but on `DeviceEvent`s it will be the handle to that device. `DeviceIdExt::get_persistent_identifier` can be used to acquire a unique identifier for that device that persists across replugs/reboots/etc. +- Corrected `run_forever` on X11 to stop discarding `Awakened` events. # Version 0.13.1 (2018-04-26) diff --git a/src/platform/linux/x11/mod.rs b/src/platform/linux/x11/mod.rs index 6327b139..64eb42aa 100644 --- a/src/platform/linux/x11/mod.rs +++ b/src/platform/linux/x11/mod.rs @@ -190,8 +190,6 @@ impl EventsLoop { pub fn run_forever(&mut self, mut callback: F) where F: FnMut(Event) -> ControlFlow { - self.pending_wakeup.store(false, atomic::Ordering::Relaxed); - let mut xev = unsafe { mem::uninitialized() }; loop {