Name
XtDestroyApplicationContext — destroy an application context and close its displays.
Synopsis
void XtDestroyApplicationContext(app_context)
XtAppContext app_context;
Arguments
app_context
Specifies the application context.
Description
XtDestroyApplicationContext destroys the specified application context 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.
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 operating 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.