winit-sonoma-fix/src/api
Joe Wilm 2ee658048a Fix busy loop in X11 WaitEventsIterator
WaitEventsIterator implements waiting by first calling XPeekEvent which
will block until at least 1 event is queued, and then it delegates to
PollEventsIterator to actually handle the new event. PollEventsIterator
was previously picky about which events it would process. Events of
other types would get stuck at the head of the X event queue, and
PollEventsIterator would return None. This initiated a busy loop in the
WaitEventsIterator because it would XPeekEvent, see that something is
there, and then PollEventsIterator would return None, and the process
would repeat.

This is resolved by using XNextEvent in the PollEventsIterator instead
of XCheckTypedEvent. Any event in the queue will be popped. Even if
winit isn't interested in the event, this means XPeekEvent will block
again to wait for another event instead of the previous behavior.
2017-02-15 08:34:24 -08:00
..
wayland Wayland fix attempt 2017-01-28 15:56:53 +01:00
x11 Fix busy loop in X11 WaitEventsIterator 2017-02-15 08:34:24 -08:00
dlopen.rs Fix this_platform_is_not_supported on OpenBSD. 2016-03-01 18:06:13 -08:00
mod.rs Fix iOS build and add to Travis CI 2016-12-13 07:29:17 -06:00