зеркало из https://github.com/mozilla/pjs.git
This should fix the mac bustage.
This commit is contained in:
Родитель
65543bf8e3
Коммит
31d6c6f122
|
@ -723,17 +723,14 @@ nsAppShellService::UnregisterTopLevelWindow(nsIXULWindow* aWindow)
|
|||
if (0 == cnt)
|
||||
{
|
||||
#if XP_MAC
|
||||
if (mHiddenWindow)
|
||||
nsCOMPtr<nsIBaseWindow> hiddenWin(do_QueryInterface(mHiddenWindow));
|
||||
if (hiddenWin)
|
||||
{
|
||||
// Given hidden window the focus so it puts up the menu
|
||||
nsIWidget* widget = NULL;
|
||||
mHiddenWindow->GetWidget( widget );
|
||||
if( widget )
|
||||
{
|
||||
nsCOMPtr<nsIWidget> widget;
|
||||
hiddenWin->GetMainWidget(getter_AddRefs(widget));
|
||||
if(widget)
|
||||
widget->SetFocus();
|
||||
|
||||
widget->Release();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче