diff --git a/src/lib/platform/XWindowsUtil.cpp b/src/lib/platform/XWindowsUtil.cpp index cfef8cf4..10cd3675 100644 --- a/src/lib/platform/XWindowsUtil.cpp +++ b/src/lib/platform/XWindowsUtil.cpp @@ -1781,8 +1781,10 @@ XWindowsUtil::ErrorLock::ignoreHandler(Display*, XErrorEvent* e, 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(flag) = true; }