XOpenDisplay
XOpenDisplay is a function in the X Window System's Xlib library that opens a connection to an X server. It returns a pointer to a Display structure, which represents the connection and is used by virtually all subsequent Xlib calls. If the connection cannot be established, XOpenDisplay returns NULL.
The function takes a display_name argument that identifies which X server to connect to. If display_name is
On a successful connection, the Display object provides default settings such as the default screen, default
For multi-threaded programs, access to the Display should be serialized because Xlib is not inherently thread-safe