The following fragment of code is very typical:
// Creating a popup dialog
Widget dialog = XmCreateMessageDialog( parent, "Dialog", 0, 0 ); //
parent is initialized earlier in the code
XtManageChild( dialog );
XtPopup( XtParent( dialog ), XtGrabNone );
Why do we need the XtPopup call? XtManageChild maps the dialog, anyway.
In fact, if one comments the last line out, behavior does not change (at
least, visibly). I surfed the Net, but no one seems to care about it.
Thank you in advance,