XtSetArg(args[n], XtNborderWidth, 0); n++;
xt_client_create ( XtClient* xtclient ,                    Window embedderid,                    int height,                    int width ) {  int           n;  Arg           args[5];  Widget        child_widget;  Widget        top_widget;#ifdef DEBUG_XTBIN  printf("xt_client_create() \n");#endif  top_widget = XtAppCreateShell("drawingArea", "Wrapper",                                 applicationShellWidgetClass,                                 xtclient->xtdisplay,                                 NULL, 0);  xtclient->top_widget = top_widget;  /* set size of Xt window */  n = 0;  XtSetArg(args[n], XtNheight,   height);n++;  XtSetArg(args[n], XtNwidth,    width);n++;  XtSetValues(top_widget, args, n);  child_widget = XtVaCreateWidget("form",                                   compositeWidgetClass,                                   top_widget, NULL);  n = 0;  XtSetArg(args[n], XtNheight,   height);n++;  XtSetArg(args[n], XtNwidth,    width);n++;  XtSetArg(args[n], XtNvisual,   xtclient->xtvisual ); n++;  XtSetArg(args[n], XtNdepth,    xtclient->xtdepth ); n++;  XtSetArg(args[n], XtNcolormap, xtclient->xtcolormap ); n++;  XtSetValues(child_widget, args, n);  XSync(xtclient->xtdisplay, FALSE);  xtclient->oldwindow = top_widget->core.window;  top_widget->core.window = embedderid;  /* this little trick seems to finish initializing the widget */#if XlibSpecificationRelease >= 6  XtRegisterDrawable(xtclient->xtdisplay,                      embedderid,                     top_widget);#else  _XtRegisterWindow( embedderid,                     top_widget);#endif  XtRealizeWidget(child_widget);  /* listen to all Xt events */  XSelectInput(xtclient->xtdisplay,                XtWindow(top_widget),                0x0FFFFF);  XSelectInput(xtclient->xtdisplay,                XtWindow(child_widget),                0x0FFFFF);  xt_client_set_info (child_widget, 0);  XtManageChild(child_widget);  xtclient->child_widget = child_widget;  /* set the event handler */  XtAddEventHandler(child_widget, 0x0FFFFF, TRUE,       (XtEventHandler)xt_client_event_handler, xtclient);  XtAddEventHandler(child_widget,                     SubstructureNotifyMask | ButtonReleaseMask,                     TRUE,                     (XtEventHandler)xt_client_focus_listener,                     xtclient);  XSync(xtclient->xtdisplay, FALSE);}