|
|
#include <X11/Xmu/Error.h>int XmuPrintDefaultErrorMessage(dpy, event, fp) Display *dpy; XErrorEvent *event; FILE *fp;
int XmuSimpleErrorHandler(dpy, errorp) Display *dpy; XErrorEvent *errorp;
The XmuPrintDefaultErrorMessage function prints an error message, equivalent to Xlib's default error message for protocol errors. It returns a non-zero value if the caller should consider exiting, otherwise it returns 0. This function can be used when you need to write your own error handler, but need to print out an error from within that handler.
The XmuSimpleErrorHandler function ignores errors for BadWindow errors for XQueryTree and XGetWindowAttributes, and ignores BadDrawable errors for XGetGeometry; it returns 0 in those cases. Otherwise, it prints the default error message, and returns a non-zero value if the caller should consider exiting, and 0 if the caller should not exit.