Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uunet!pcrat!rick From: rick@pcrat.uucp (Rick Richardson) Newsgroups: comp.windows.x Subject: Re: Incremental Display of Widget Tree Message-ID: <1990Aug9.152858.5963@pcrat.uucp> Date: 9 Aug 90 15:28:58 GMT References: <1990Aug8.025339.3419@pcrat.uucp> Reply-To: rick@pcrat.UUCP (Rick Richardson) Organization: PC Research, Inc., Tinton Falls, NJ Lines: 22 Thanks to all who mailed me concerning "Incremental Display of Widget Tree". There were several answers that included using expose event callbacks and waiting in a modified XtAppMainLoop for particular events. However, the simplest solution came from Ralph Swick, and does the trick for my application: XFlush(TheDisplay); for(;;) { XEvent event; XSync(TheDisplay, 0); if (!XtAppPending(Context)) break; XtAppNextEvent(Context, &event); XtDispatchEvent(&event); } -Rick -- Rick Richardson - PC Research, Inc., uunet!pcrat!rick, (201) 389-8963