XSynchronize(3) XLIB FUNCTIONS XSynchronize(3)

# [NAME](#NAME)

XSynchronize, XSetAfterFunction - enable or disable synchronization

# [SYNTAX](#SYNTAX)

int (\*XSynchronize(Display \**display*, Bool *onoff*))();

int (\*XSetAfterFunction(Display \**display*, int (\**procedure*)()))();

# [ARGUMENTS](#ARGUMENTS)

[*display*](#display)

Specifies the connection to the X server.

[*procedure*](#procedure)

Specifies the procedure to be called.

[*onoff*](#onoff)

Specifies a Boolean value that indicates whether to enable or disable synchronization.

# [DESCRIPTION](#DESCRIPTION)

The **XSynchronize** function returns the previous after function. If onoff is **True**, **XSynchronize** turns on synchronous behavior. If onoff is **False**, **XSynchronize** turns off synchronous behavior.

The specified procedure is called with only a display pointer. **XSetAfterFunction** returns the previous after function.

# [SEE ALSO](#SEE_ALSO)

[**XSetErrorHandler**(3)](/man/os/libx11/XSetErrorHandler.3)  
*Xlib - C Language X Interface*

libX11 1.8.14 X Version 11

---

Document: XSetAfterFunction(3) from libx11 1.8.14-r0 (Chainguard OS)
Source: https://gitlab.freedesktop.org/xorg/lib/libx11.git
