The function xcb_poll_for_next_event replaces
xcb_poll_for_queued_event and can now be used by _XReply and
_XEventsQueued. This is needed to fix a problem in libX11, which
caused _XEventsQueued to miss connection I/O errors.