From ac923ebfb8a7cf24556fce75e4e16b164d80c06c Mon Sep 17 00:00:00 2001 From: "pinkerton%netscape.com" Date: Sun, 28 Jan 2001 02:12:58 +0000 Subject: [PATCH] fix for 66823. we weren't correctly setting the port before calling LocalToGlobal, which would cause ::MoveWindow() to be skipped in some situations (2nd browser window). r=danm/sr=ben. --- widget/src/mac/nsMacWindow.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/widget/src/mac/nsMacWindow.cpp b/widget/src/mac/nsMacWindow.cpp index e48abe704939..fa00ef87755f 100644 --- a/widget/src/mac/nsMacWindow.cpp +++ b/widget/src/mac/nsMacWindow.cpp @@ -32,6 +32,7 @@ #include "nsIDragSessionMac.h" #include "nsGUIEvent.h" #include "nsCarbonHelpers.h" +#include "nsGFXUtils.h" #include @@ -667,7 +668,8 @@ NS_IMETHODIMP nsMacWindow::ConstrainPosition(PRInt32 *aX, PRInt32 *aY) //------------------------------------------------------------------------- NS_IMETHODIMP nsMacWindow::Move(PRInt32 aX, PRInt32 aY) { - + StPortSetter setOurPortForLocalToGlobal ( mWindowPtr ); + if (eWindowType_popup == mWindowType) { PRInt32 xOffset=0,yOffset=0; nsRect localRect,globalRect;