printf("In timer\n");
void nsXtWidget_Refresh_Callback(XtPointer call_data){    printf("In timer\n");    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);//    widgetWindow->SetResized(PR_FALSE);    nsPaintEvent pevent;    pevent.message = NS_PAINT;    pevent.widget = widgetWindow;    pevent.time = 0;    pevent.rect = (nsRect *)&bounds;    widgetWindow->OnPaint(pevent);    XtAppAddTimeOut(gAppContext, 50, (XtTimerCallbackProc)nsXtWidget_ResetResize_Callback, widgetWindow);}