[comp.windows.x] Keyboard focus problems

gustav@arp.anu.OZ.AU (11/07/89)

Dear Xpert,

I have a problem with the keyboard focus in my application. What happens is
as follows:
   On pressing a button in the main "control pannel" of my application
   a new window appears which consists of two dialog boxes, some lists,
   and a few command widgets - one of them being "close window". There
   are no problems at this stage with trasferring the keyboard focus
   between various dialog boxes of the application and between its
   various top level windows. The focus is given to the window automatically
   when the cursor enters the area of the window. However, when I try
   to close the window by pressing the "close window" command button,
   the window takes the keyboard focus with it, and it cannot be transferred
   to the main command panel, unless the pop-up window is popped up again.
   The popup is popped up using XtPopup (popup_shell, XtGrabNone), and then
   it is popped down using XtPopdown (popup_shell). The application has
   been written using Athena Widgets, X11/R3, vanilla distribution.
   The widgets used in the offending windows are dialog widget, command
   widget, list widget, and label widget.
      I've been experimenting with various kinds of "grabs" but to no avail.

   Best regards,

   Gustav Meglicki,
   Automated Reasoning Project
   Research School of Social Sciences
   Australian National University,
   GPO Box 4, Canberra, ACT, 2601, Australia

   gustav@arp.anu.oz.au