---
name: "XSynchronize"
section: "3"
platform: "linux"
package: "libx11"
version: "1.8.14-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/XSynchronize"
---

# XSynchronize(3)

enable or disable synchronization

## NAME

XSynchronize, XSetAfterFunction - enable or disable synchronization

## SYNTAX

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

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

## ARGUMENTS

- *display*

  Specifies the connection to the X server.

- *procedure*

  Specifies the procedure to be called.

- *onoff*

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

## 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

[**XSetErrorHandler**(3)](/XSetErrorHandler/3.md)\
 *Xlib - C Language X Interface*
