x11: Always receive Awakened event in run_forever (#489)

* x11: Always receive Awakened event in run_forever

Do not reset the pending_wakeup boolean at the start of run_forever so
that each call to EventsLoopProxy::wakeup results in an Awakened event.

Fixes #462

* Update CHANGELOG.md
This commit is contained in:
Johannes Hofmann 2018-04-29 01:03:06 +02:00 committed by Francesca Frangipane
parent fe2d37fcdc
commit ea28791da6
2 changed files with 1 additions and 2 deletions

View file

@ -190,8 +190,6 @@ impl EventsLoop {
pub fn run_forever<F>(&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 {