Hi,

1/ The following program with XtVaOpenApplication produce a warning;
and,  it does not exit with the Close command of fvwm:
"Warning: XtRemoveGrab asked to remove a widget not on the list"

2/ The same test with XtAppInitialize works fine...

int main (int argc, char** argv)
{
Widget     toplevel,too;
 XtAppContext app;
// First case   (remove XtAppInitialize)
toplevel = XtVaOpenApplication(&app,"Hello",NULL, 0,&argc,
argv,NULL,topLevelShellWidgetClass,NULL );
// Second case (remove XtVaOpenApplication)
toplevel = XtAppInitialize ( &app, "Hello", NULL, 0, &argc, argv, NULL,
NULL, 0 );

too = XtCreateManagedWidget("MyWindow", xmMainWindowWidgetClass, toplevel,
NULL, 0);

XtRealizeWidget ( toplevel );
XtAppMainLoop ( app );
}

NB: cheched with Lesstif 0.93.18-3, Cygwin/Xfree and fvwm2 2.4.7-2...

a+
Philippe

_______________________________________________
Lesstif mailing list
[EMAIL PROTECTED]
https://terror.hungry.com/mailman/listinfo/lesstif

Reply via email to