forked from external/yambar
xcb: add xcb_error(), a generic describe-an-x-error function
By default, generates an error message with the major/minor opcodes, the error code and sequence number. If available, it will use xcb-errors to generate an even better description.
This commit is contained in:
parent
7a8ba94a49
commit
fae2e5cb18
5 changed files with 67 additions and 44 deletions
2
xcb.h
2
xcb.h
|
@ -8,6 +8,8 @@ bool xcb_init(void);
|
|||
xcb_atom_t get_atom(xcb_connection_t *conn, const char *name);
|
||||
char *get_atom_name(xcb_connection_t *conn, xcb_atom_t atom);
|
||||
|
||||
const char *xcb_error(const xcb_generic_error_t *error);
|
||||
|
||||
/* Cached atoms */
|
||||
xcb_atom_t UTF8_STRING;
|
||||
xcb_atom_t _NET_WM_PID;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue