Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!usc!apple!snorkelwacker!bloom-beacon!ATHENA.MIT.EDU!swick From: swick@ATHENA.MIT.EDU (Ralph Swick) Newsgroups: comp.windows.x Subject: Re: Incremental Display of Widget Tree Message-ID: <9008091732.AA20096@lyre.MIT.EDU> Date: 9 Aug 90 17:32:07 GMT References: <1990Aug9.152858.5963@pcrat.uucp> Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 16 You fleshed-out my pseudo-code just fine, but the performance can be improved considerably with an inner loop: for(;;) { XEvent event; while (XtAppPending(Context)) { XtAppNextEvent(Context, &event); XtDispatchEvent(&event); } XSync(TheDisplay, 0); if (!XtAppPending(Context)) break; } -Ralph