2.6. X Server Connection Close Operations

When the X server's connection to a client is closed either by an explicit call to XCloseDisplay() or by a process that exits, the X server performs the following automatic operations:

When the close-down mode is DestroyAll, the X server destroys all of a client's resources as follows:

Additional processing occurs when the last connection to the X server closes. An X server goes through a cycle of having no connections and having some connections. When the last connection to the X server closes as a result of a connection closing with the close_mode of DestroyAll, the X server does the following:

However, the X server does not reset if you close a connection with a close-down mode set to RetainPermanent or RetainTemporary.

Next: Using Xlib With Threads

Christophe Tronche, ch@tronche.com