Gunnar Evermann <Gunnar.Evermann(a)nats.informatik.uni-hamburg.de> writes:
#else
XtDestroyWidget (w);
+ XFlush (XtDisplay(w)); /* make sure the windows are really gone! */
#endif /* EXTERNAL_WIDGET */
XtDestroyWidget() does not actually destroy the window. As I
remember, it marks the widget (and all children) as in the process of
being destroyed and puts it on a to-be-deleted list. When the
application returns to the main loop and all pending events are
handled, then the widget is actually deleted (phase 2). Destroying
the actual window is one of the last things done in phase 2.
--pete