More changes for resize under Linux

This commit is contained in:
kmcclusk 1998-06-17 23:56:23 +00:00
parent 80c5657d3a
commit ff47663aea
2 changed files with 4 additions and 8 deletions

View File

@ -383,7 +383,7 @@ void nsWindow::InitCallbacks(char * aName)
XtAddEventHandler(mWidget,
ExposureMask,
PR_TRUE,
PR_FALSE,
nsXtWidget_ExposureMask_EventHandler,
this);
@ -578,8 +578,6 @@ void nsWindow::SetBounds(const nsRect &aRect)
//-------------------------------------------------------------------------
void nsWindow::GetBounds(nsRect &aRect)
{
printf("IN get bounds %d %d \n", mBounds.width, mBounds.height);
/*XWindowAttributes attrs ;
Window w = nsnull;
@ -1040,7 +1038,6 @@ void nsWindow::OnDestroy()
PRBool nsWindow::OnResize(nsSizeEvent &aEvent)
{
nsRect* size = aEvent.windowSize;
/*if (mWidget) {
Arg arg[3];

View File

@ -145,7 +145,6 @@ void nsXtWidget_ExposureMask_EventHandler(Widget w, XtPointer p, XEvent * event,
pevent.rect = (nsRect *)▭
XEvent xev;
#if 0
int count = 0;
while (XPeekEvent(XtDisplay(w), &xev))
{
@ -158,7 +157,6 @@ void nsXtWidget_ExposureMask_EventHandler(Widget w, XtPointer p, XEvent * event,
break;
}
}
#endif
widgetWindow->OnPaint(pevent);
@ -516,12 +514,13 @@ void nsXtWidget_Resize_Callback(Widget w, XtPointer p, XtPointer call_data)
//attrs.x, attrs.y, attrs.width, attrs.height, rect.width, rect.height);
// NOTE: THIS May not be needed when embedded in chrome
printf("Adding timeout\n");
extern XtAppContext gAppContext;
if (! gResized)
if (! gResized) {
printf("Adding timeout\n");
XtAppAddTimeOut(gAppContext, 1000, (XtTimerCallbackProc)nsXtWidget_Refresh_Callback, widgetWindow);
}
gResizeRect.x = rect.x;
gResizeRect.y = rect.y;