зеркало из https://github.com/mozilla/pjs.git
Bug 190791: Windows don't remember location in macho builds. r=danm, sr=sfraser, a=asa
This commit is contained in:
Родитель
e2919d5fae
Коммит
8034a9a64b
|
@ -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();
|
||||||
|
|
Загрузка…
Ссылка в новой задаче