Fix for bug 119091 - applescript window z order issues

r=timeless, sr=smfr


git-svn-id: svn://10.0.0.236/trunk@131117 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
lordpixel%mac.com 2002-10-04 00:35:01 +00:00
parent 69c5401d2c
commit a251c20ceb

View File

@ -320,7 +320,7 @@ WindowPtr nsWindowUtils::GetIndexedWindowOfKind(TWindowKind windowKind, TAEListI
ThrowErrIfNil(windowMediator, paramErr);
nsCOMPtr<nsISimpleEnumerator> windowEnumerator;
if (NS_FAILED(windowMediator->GetXULWindowEnumerator(nsnull, getter_AddRefs(windowEnumerator))))
if (NS_FAILED(windowMediator->GetZOrderXULWindowEnumerator(nsnull, PR_TRUE, getter_AddRefs(windowEnumerator))))
ThrowOSErr(paramErr); // need a better error
WindowPtr windowPtr = NULL;
@ -367,7 +367,7 @@ TAEListIndex nsWindowUtils::GetWindowIndex(TWindowKind windowKind, WindowPtr the
ThrowErrIfNil(windowMediator, paramErr);
nsCOMPtr<nsISimpleEnumerator> windowEnumerator;
if (NS_FAILED(windowMediator->GetXULWindowEnumerator(nsnull, getter_AddRefs(windowEnumerator))))
if (NS_FAILED(windowMediator->GetZOrderXULWindowEnumerator(nsnull, PR_TRUE, getter_AddRefs(windowEnumerator))))
ThrowOSErr(paramErr); // need a better error
TAEListIndex index = 0L;