F.2 Error Handler Functions
XmuPrintErrorMessage() prints an error message
equivalent to Xlib’s default error message for protocol errors. It
returns a nonzero 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.
XmuSimpleErrorHandler() is an error handler
function you can use in place of the default protocol error handler. It
ignores 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 nonzero
value if the caller should consider exiting and 0 if the caller should
not exit.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access