XtDestroyApplicationContext()XtDestroyApplicationContext()NameXtDestroyApplicationContext - destroy an application context and close
its displays.
Synopsis
void XtDestroyApplicationContext(app_context)
XtAppContext app_context;
Inputs
app_context
Specifies the application context.
DescriptionXtDestroyApplicationContext() destroys the specified application con‐
text and closes any display connections in it as soon as it is safe to
do so. If called from within an event handler or a callback procedure,
XtDestroyApplicationContext() does not destroy the application context
until the dispatch is complete.
Usage
X Toolkit applications need not call XtDestroyApplicationContext()
unless they use multiple application contexts and want to destroy one.
Most applications can exit using the standard method for their operat‐
ing system (typically, by calling exit for POSIX-based systems). The
quickest way to make the windows disappear while exiting is to call
XtUnmapWidget() on each top-level shell widget. The X Toolkit has no
resources beyond those in the program image, and the X server will free
its resources when its connection to the application is broken.
See AlsoXtCreateApplicationContext(1).
Xt - Application Contexts XtDestroyApplicationContext()