tsingle@sunland.gsfc.nasa.gov (Tim Singletary) (03/13/91)
What, if any, assumptions can I make about the order in which the X11R4 XtAppMainLoop() (as distributed from MIT) processes events? I've read documentation which suggests there are three event queues: one for normal X events, one for input events (for inputs registered with XtAppAddInput()), and one for timer events (XtAppAddTimeOut()). Is this correct, and if so, how does XtAppMainLoop choose which queue to process next? The reason I'm asking is I have an application which registers an input with XtAppAddInput() and a KeyPress event handler with XtAddEventHandler(); this application appears to give priority to the input (i.e., if a lot of inputs are coming in it takes a long time before the KeyPress handler gets called). I suspect that what's happening is that XtAppMainLoop() checks to see if there's any input before it checks to see if there are any normal X events. Is this correct? And if it is correct, how can I write an alternate MainLoop() which handles normal X events before checking to see if there's any pending input? Thanks, tim -- Tim Singletary, August Automation Inc., (301) 286-7942 -- Why does The Government care whether or not I wear a seatbelt when I drive?