Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!wuarchive!rex!ukma!seismo!bonnett From: bonnett@seismo.CSS.GOV (H. David Bonnett) Newsgroups: comp.windows.x.motif Subject: Problems with X events and icons Message-ID: <49499@seismo.CSS.GOV> Date: 15 Mar 91 13:31:26 GMT Sender: usenet@seismo.CSS.GOV Organization: Center for Seismic Studies, Arlington, VA Lines: 33 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.