reorder parent activation on destroy to fix stacked dialog focus regression. bug 122765 r=bryner,hyatt

This commit is contained in:
danm%netscape.com 2002-02-12 23:55:54 +00:00
Родитель 447e04116c
Коммит 847c6d06f1
1 изменённых файлов: 6 добавлений и 4 удалений

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

@ -325,6 +325,12 @@ NS_IMETHODIMP nsXULWindow::Destroy()
if(!mWindow)
return NS_OK;
#ifdef XP_PC
/* must activate parent before unregistering, since unregistering
affects the topmost window status, which activateparent uses. */
ActivateParent();
#endif
{
/* unregister before setting mBeingDestroyed because -turbo code
wants to be able to pose a dialog. */
@ -360,10 +366,6 @@ NS_IMETHODIMP nsXULWindow::Destroy()
if (parentWindow)
parentWindow->RemoveChildWindow(this);
#ifdef XP_PC
ActivateParent();
#endif
// Anyone still using native menus should add themselves here.
#if defined(XP_MAC) || defined(XP_MACOSX)
{