XSetAfterFunction() XSetAfterFunction()
Name
XSetAfterFunction - set a function called after all Xlib functions.
Synopsis
int (*XSetAfterFunction(display, procedure))()
Display *display;
int (*procedure)();
Arguments
display Specifies a connection to an X server; returned from XOpenDisplay().
procedure Specifies the user-defined function to be called after each Xlib function. This function is called with one argument, the dis-
play pointer.
Returns
The previous after function.
Description
All Xlib functions that generate protocol requests call what is known as an after function after completing their work (the default after
function does nothing). XSetAfterFunction() allows you to write a function to be called. XSetAfterFunction() returns the previous after
function.
XSynchronize() sets an after function to make sure that the input and request buffers are flushed after every Xlib routine.
For more information, see Volume One, Chapter 15, Other Programming Techniques.
See Also
XDisplayName(), XGetErrorDatabaseText(), XGetErrorText(), XSetErrorHandler(), XSetIOErrorHandler(), XSynchronize().
Xlib - Error Handling XSetAfterFunction()