X11 errors: also log the error_code (see X Protocol, Appendix B, Errors)
This commit is contained in:
parent
ae9c90ba19
commit
bc7dec6a4c
|
@ -76,7 +76,11 @@ static void xcb_check_cb(EV_P_ ev_check *w, int revents) {
|
||||||
if (event->response_type == 0) {
|
if (event->response_type == 0) {
|
||||||
if (event_is_ignored(event->sequence, 0))
|
if (event_is_ignored(event->sequence, 0))
|
||||||
DLOG("Expected X11 Error received for sequence %x\n", event->sequence);
|
DLOG("Expected X11 Error received for sequence %x\n", event->sequence);
|
||||||
else ELOG("X11 Error received! sequence %x\n", event->sequence);
|
else {
|
||||||
|
xcb_generic_error_t *error = (xcb_generic_error_t*)event;
|
||||||
|
ELOG("X11 Error received! sequence 0x%x, error_code = %d\n",
|
||||||
|
error->sequence, error->error_code);
|
||||||
|
}
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue