зеркало из https://github.com/mozilla/pjs.git
Bug 630276 - Closing full-screen windows does not restore menubar/dock on Mac. r=joshaas,mstange a=blocking2.0
This commit is contained in:
Родитель
96cc46026e
Коммит
9dbe5b9731
|
@ -171,10 +171,6 @@ nsCocoaWindow::~nsCocoaWindow()
|
|||
{
|
||||
NS_OBJC_BEGIN_TRY_ABORT_BLOCK;
|
||||
|
||||
if (mFullScreen) {
|
||||
nsCocoaUtils::HideOSChromeOnScreen(PR_FALSE, [mWindow screen]);
|
||||
}
|
||||
|
||||
// Notify the children that we're gone. Popup windows (e.g. tooltips) can
|
||||
// have nsChildView children. 'kid' is an nsChildView object if and only if
|
||||
// its 'type' is 'eWindowType_child' or 'eWindowType_plugin'.
|
||||
|
@ -489,6 +485,10 @@ NS_IMETHODIMP nsCocoaWindow::Destroy()
|
|||
nsBaseWidget::Destroy();
|
||||
nsBaseWidget::OnDestroy();
|
||||
|
||||
if (mFullScreen) {
|
||||
nsCocoaUtils::HideOSChromeOnScreen(PR_FALSE, [mWindow screen]);
|
||||
}
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче