--- a/src/X11Command.h Fri Apr 02 10:54:46 2021 +0200
+++ b/src/X11Command.h Fri Apr 02 17:44:01 2021 +0200
@@ -263,7 +263,15 @@
}
static int handleXError(::Display* display, XErrorEvent* errorEvent) {
- // FIXME: print error
+ std::wcerr << L"X11 error:"
+ << L" display=" << errorEvent->display
+ << L" error_code=" << errorEvent->error_code
+ << L" minor_code=" << errorEvent->minor_code
+ << L" request_code=" << errorEvent->request_code
+ << L" resourceid=" << errorEvent->resourceid
+ << L" serial=" << errorEvent->serial
+ << L" type=" << errorEvent->type
+ << std::endl;
return 0;
}