#6528 Also display error text as well as error code when logging an X11 error
This commit is contained in:
parent
4b809048ad
commit
70a26763a5
|
@ -1781,8 +1781,10 @@ XWindowsUtil::ErrorLock::ignoreHandler(Display*, XErrorEvent* e, void*)
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
XWindowsUtil::ErrorLock::saveHandler(Display*, XErrorEvent* e, void* flag)
|
XWindowsUtil::ErrorLock::saveHandler(Display* display, XErrorEvent* e, void* flag)
|
||||||
{
|
{
|
||||||
LOG((CLOG_DEBUG1 "flagging X error: %d", e->error_code));
|
char errtxt[1024];
|
||||||
|
XGetErrorText(display, e->error_code, errtxt, 1023);
|
||||||
|
LOG((CLOG_DEBUG1 "flagging X error: %d - %.1023s", e->error_code, errtxt));
|
||||||
*static_cast<bool*>(flag) = true;
|
*static_cast<bool*>(flag) = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue