Bug 190791: Windows don't remember location in macho builds. r=danm, sr=sfraser, a=asa

This commit is contained in:
jaggernaut%netscape.com 2003-01-30 04:51:50 +00:00
Родитель e2919d5fae
Коммит 8034a9a64b
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -834,13 +834,13 @@ void nsXULWindow::OnChromeLoaded()
PRBool positionSet = PR_TRUE; PRBool positionSet = PR_TRUE;
nsCOMPtr<nsIXULWindow> parentWindow(do_QueryReferent(mParentWindow)); nsCOMPtr<nsIXULWindow> parentWindow(do_QueryReferent(mParentWindow));
#ifdef XP_UNIX #if defined(XP_UNIX) && !defined(XP_MACOSX)
// don't override WM placement on unix for independent, top-level windows // don't override WM placement on unix for independent, top-level windows
// (however, we think the benefits of intelligent dependent window placement // (however, we think the benefits of intelligent dependent window placement
// trump that override.) // trump that override.)
if (!parentWindow) if (!parentWindow)
positionSet = PR_FALSE; positionSet = PR_FALSE;
#endif #endif
if (positionSet) if (positionSet)
positionSet = LoadPositionFromXUL(); positionSet = LoadPositionFromXUL();
LoadSizeStateFromXUL(); LoadSizeStateFromXUL();