printf("nsWindow_ResetResize_Callback 3 0x%x\n", gAppContext);
void nsWindow_Refresh_Callback(XtPointer call_data){    nsWindow* widgetWindow = (nsWindow*)call_data;    nsRect bounds;    widgetWindow->GetResizeRect(&bounds);     nsSizeEvent event;    event.message = NS_SIZE;    event.widget  = widgetWindow;    event.time    = 0; //TBD    event.windowSize = &bounds;    widgetWindow->SetBounds(bounds);     widgetWindow->OnResize(event);printf("nsWindow_ResetResize_Callback 1\n");    nsPaintEvent pevent;    pevent.message = NS_PAINT;    pevent.widget = widgetWindow;    pevent.time = 0;    pevent.rect = (nsRect *)&bounds;printf("nsWindow_ResetResize_Callback 2\n");    widgetWindow->OnPaint(pevent);printf("nsWindow_ResetResize_Callback 3 0x%x\n", gAppContext);    XtAppAddTimeOut(gAppContext, 50, (XtTimerCallbackProc)nsWindow_ResetResize_Callback, widgetWindow);printf("nsWindow_ResetResize_Callback 4\n");}