[ba.windows.x] popup window pops down too slowly

chapman@lll-lcc.UUCP (Carol Chapman) (06/06/89)

I have a popup window which asks a user to enter some information and
then click on either an Ok or a Cancel button, both buttons being
located in that same popup window.  I can run my program in a
debugging mode which prints a lot of debugging statements, or I can
run without it.  I've noticed that when I run in the debug mode, the
popup window vanishes pretty quickly after the user clicks on the Ok
or Cancel button.  However, if I am not in that debugging mode, the
popup window can remain on the screen for a *LONG* time before it
finally vanishes.  Can anyone tell me what is causing this, and how to
eliminate the slow vanishing act?

Thanks,
carol chapman

P.S.  The basic popup/popdown routine looks like this:
.
.
XtPopup(popup_shell, XtGrabExclusive);
popup_state = WAITING;
while (popup_state == WAITING)  {
  XtAppNextEvent(app_context, &event);
  XtDispatchEvent(&event);
} 
XtPopdown(popup_shell);
.
.
-- 
-------------------------------------------------------------------------------
Livermore Lab            (chapman@lll-crg.llnl.gov or chapman@lll-lcc.llnl.gov)
P.O. Box 808, L-153      Tel. (415) 423-7876
Livermore, CA  94550     "Never own anything that you have to FEED or PAINT."