From 9a8bc6d711e9190a1a0cd5ece01a7c6e00d50860 Mon Sep 17 00:00:00 2001 From: "kmcclusk%netscape.com" Date: Fri, 31 Jul 1998 22:36:54 +0000 Subject: [PATCH] Removed call to XtMoveWidget since this breaks the IRIX build. --- widget/src/motif/nsWindow.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/widget/src/motif/nsWindow.cpp b/widget/src/motif/nsWindow.cpp index 0dfcea7cc4fd..026e3c911e75 100644 --- a/widget/src/motif/nsWindow.cpp +++ b/widget/src/motif/nsWindow.cpp @@ -655,8 +655,8 @@ void nsWindow::Move(PRUint32 aX, PRUint32 aY) mBounds.y = aY; // UpdateVisibilityFlag(); // UpdateDisplay(); - XtMoveWidget(mWidget, (Position)aX, (Position)GetYCoord(aY)); -// XtVaSetValues(mWidget, XmNx, aX, XmNy, GetYCoord(aY), nsnull); + //XtMoveWidget(mWidget, (Position)aX, (Position)GetYCoord(aY)); + XtVaSetValues(mWidget, XmNx, aX, XmNy, GetYCoord(aY), nsnull); } //------------------------------------------------------------------------- @@ -673,6 +673,8 @@ void nsWindow::Resize(PRUint32 aWidth, PRUint32 aHeight, PRBool aRepaint) // UpdateVisibilityFlag(); // UpdateDisplay(); XtVaSetValues(mWidget, XmNx, mBounds.x, XmNy, mBounds.y, XmNwidth, aWidth, XmNheight, aHeight, nsnull); + +// XtResizeWidget(mWidget, aWidth, aHeight, 0); } @@ -690,7 +692,7 @@ void nsWindow::Resize(PRUint32 aX, PRUint32 aY, PRUint32 aWidth, PRUint32 aHeigh // UpdateVisibilityFlag(); // UpdateDisplay(); XtVaSetValues(mWidget, XmNx, aX, XmNy, GetYCoord(aY), - XmNwidth, aWidth, XmNheight, aHeight, nsnull); + XmNwidth, aWidth, XmNheight, aHeight, nsnull); } @@ -1079,7 +1081,9 @@ void nsWindow::Scroll(PRInt32 aDx, PRInt32 aDy, nsRect *aClipRect) Position x; Position y; XtVaGetValues(children[i], XtNx, &x, XtNy, &y, nsnull); - XtMoveWidget(children[i], x + aDx, y + aDy); + + XtVaSetValues(children[i], XmNx, x + aDx, XmNy, y + aDy, nsnull); + // XtMoveWidget(children[i], x + aDx, y + aDy); } }