XCloseDisplay
lastmod 2026-11-10created 2021-01-032 edits
XCloseDisplay is an Xlib function that closes a connection to an X server opened with XOpenDisplay. It frees all windows, resource IDs, graphics contexts, colormaps, and other resources belonging to the connection on the server, and also releases the memory allocated to the client-side Display structure, so an X application calls it just before exiting. Unless the close-down mode has been changed with XSetCloseDownMode, all resources created by that client are destroyed.
disconnect to X server.
Arguments
- display
- Specifies the connection to the X server.