Commit 4ac0de5a authored by Jamey Sharp's avatar Jamey Sharp Committed by Alan Coopersmith

poll_for_response: Really handle xcb_poll_for_reply getting a reply.

Don't lose async replies. That's bad.

`xlsfonts -l`, which uses XListFontsWithInfo, worked fine, because the
_XReply path worked; that path waited for replies, rather than polling.

However, XRecordProcessReplies, which does nothing but call XPending,
relied on the event-handling path to process async replies, and that was

Fixes: Jamey Sharp's avatarJamey Sharp <>
(cherry picked from commit 978c7238)

Cherry pick without conflicts from master to 1.3 branch.
Signed-off-by: Pauli Nieminen's avatarPauli Nieminen <>
Signed-off-by: Alan Coopersmith's avatarAlan Coopersmith <>
parent 7f5a8fac
......@@ -239,8 +239,9 @@ static xcb_generic_reply_t *poll_for_response(Display *dpy)
assert(XLIB_SEQUENCE_COMPARE(req->sequence, <=, dpy->request));
dpy->last_request_read = req->sequence;
dequeue_pending_request(dpy, req);
dequeue_pending_request(dpy, req);
return (xcb_generic_reply_t *) error;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment