bonnett@seismo.CSS.GOV (H. David Bonnett) (03/15/91)
I have noticed a problem with the interaction of Motif menus and queued events. My app will often be off doing database queries in a callback for 2 or more minutes. If I generate a button down event in the menu bar while outside the XEvent calls and then iconify the shell I get the following error: Warning: Name: menubar Class: XmRowColumn XtGrabKeyboard failed X Error of failed request: BadMatch (invalid parameter attributes) Major opcode of failed request: 42 (X_SetInputFocus) Minor opcode of failed request: 0 Resource id in failed request: 0x1700047 Serial number of failed request: 3845 Current serial number in output stream: 3864 I have tested some other apps and this does not appear to happen to them. Due to the necessity of handling async input from another source (isis) I don't use the normal XtAppMainLoop but instead use select to watch both the X and isis sockets. I am wondering if there is a connection there.. Any hints are welcome.. -dave bonnett- Center for Seismic Studies; Arlington, VA bonnett@seismo.css.gov : All standard disclaimers apply. -- -dave bonnett- Center for Seismic Studies; Arlington, VA bonnett@seismo.css.gov : All standard disclaimers apply.