[Xcb] XCB Errors and Handling

Jamey Sharp jamey at minilop.net
Sun Jun 11 11:32:11 PDT 2006


On Fri, Jun 09, 2006 at 10:16:36PM -0500, Ori Bernstein wrote:
> Hi.

Hi Ori! Would you subscribe to the list so I don't have to hand-approve
your posts?

> XCBPollForEvent() returns an event with response_type == 0, but with a
> (seemingly) valid sequence number. The error returned in the error argument to
> XCBPollForEvent is 0, so I'm not sure what's going wrong. 

Nothing is wrong. Unlike Xlib, XCB returns both X errors and events from
the event queue. When the response_type is 0, you should cast the
XCBGenericEvent* to an XCBGenericError* and pass that to your error
handler.

--Jamey
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.freedesktop.org/archives/xcb/attachments/20060611/5e4e28e0/attachment-0001.pgp


More information about the Xcb mailing list