XtCloseDisplay()XtCloseDisplay()NameXtCloseDisplay - close a display and remove it from an application con‐
text.
Synopsis
void XtCloseDisplay(display)
Display *display;
Inputs
display Specifies the display.
DescriptionXtCloseDisplay() 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 con‐
verted 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 AlsoXtAppInitialize(1), XtDestroyApplicationContext(1), XtOpenDisplay(1),
XtSetTypeConverter(1).
Xt - Initialization XtCloseDisplay()