add description to XWindows error handler message
This commit is contained in:
parent
eb025871c4
commit
edfc7e9bbc
|
@ -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