 Text field in dialog widget doesn't get focus
Organization: College of Engineering, Univ. Of Wisconsin-Madison
Originator: 
Lines: 49

I am using the GLX widget + athena widgets on a mixed-model
application, under 4Dwm, but when the dialog gets popped up, its
text entry field does not have focus. Aimilar code works perfectly if
I use "pure X" . HEre is the relevant portion of
the code.

{
   int n;
   Arg wargs[16];
   Widget Button, PopUpShell, Dialog;

   /* initialize TopLevel here */
   .
   .
   .

   n = 0;
   XtSetArg; n++;
   Button = XtCreateManagedWidget;

   PopUpShell = XtCreatePopupShell;
   XtAddCallback(PopUpShell, XtNcallback, MyPopUp, PopUpShell);

   n = 0;
   XtSetArg; n++;
   Dialog = XtCreateManagedWidget;

   .
   .
   .
}

void MyPopUp
Widget w;
Widget popup_shell;
XtPointer call_data;
{
   XtPopup;
}

---

A way I found to give focus to the text field is to move the
application window around a little bit and place it right behind the popup.

Any pointers would be greatly appreciated.
