Race condition in poll_for_response results in event not being delivered
In function poll_for_response
, if a event arrives after poll_for_event
and before xcb_poll_for_reply64
, that event will be read in xcb_poll_for_reply64
, but not be put into Xlib's queue. This can be a big problem if the application proceed to block on select()
because it thinks no events are available.