[Xcb] Xcb errors

Ian Osgood iano at quirkster.com
Thu Dec 11 17:47:37 PST 2008


On Dec 11, 2008, at 5:36 PM, Matthew Allen wrote:

> Is there a list of the error codes that can be returned in  
> xcb_generic_error_t::error_code?
>
> I'm getting the error '2' back from a xcb_create_window_checked  
> call. Where I give the screen's root as the parent, and I've set  
> override redirect to true (it's a popup window). I'll keep playing  
> with the parameters in the meantime but some help with looking up  
> errors would be good.
> --
> Matthew Allen

They are listed in the X Protocol reference. There are various forms  
available online, such as freedesktop's xorg document repository.  
This will also tell you what the error code means in reference to the  
particular request.

The error codes are also listed in XCB's generated xproto.h  
(unqualified, unfortunately, because the docs also don't qualify them).

/** Opcode for xcb_value. */
#define XCB_VALUE 2

Ian



More information about the Xcb mailing list