XtCloseDisplay() XtCloseDisplay()
Name
XtCloseDisplay - close a display and remove it from an application context.
Synopsis
void XtCloseDisplay(display)
Display *display;
Inputs
display Specifies the display.
Description
XtCloseDisplay() calls XCloseDisplay() to close display as soon as it is safe to do so. If called from within an event dispatch (for exam-
ple, a callback procedure), XtCloseDisplay() does not close the display until the dispatch is complete.
The closed display is removed from its application context. Any converted resources associated with that display which are cached with an
XtCacheType of XtCacheByDisplay are removed from the conversion cache and have their destructors, if any, called.
Usage
Note that applications need only call XtCloseDisplay() if they are to continue executing after closing the display; otherwise, they should
call XtDestroyApplicationContext() or just exit.
See Also
XtAppInitialize(1), XtDestroyApplicationContext(1), XtOpenDisplay(1), XtSetTypeConverter(1).
Xt - Initialization XtCloseDisplay()