mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-25 06:41:31 +11:00
Merge pull request #270 from tomaka/tomaka-patch-2
Fix poll_events returning None when it shouldn't
This commit is contained in:
commit
713f269ce8
|
@ -119,6 +119,7 @@ impl<'a> Iterator for PollEventsIterator<'a> {
|
|||
return Some(ev);
|
||||
}
|
||||
|
||||
loop {
|
||||
let mut xev = unsafe { mem::uninitialized() };
|
||||
let res = unsafe { ffi::XCheckMaskEvent(self.window.x.display, Int::max_value(), &mut xev) };
|
||||
|
||||
|
@ -238,8 +239,7 @@ impl<'a> Iterator for PollEventsIterator<'a> {
|
|||
|
||||
_ => ()
|
||||
};
|
||||
|
||||
return None;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue