Bug 630276 - Closing full-screen windows does not restore menubar/dock on Mac. r=joshaas,mstange a=blocking2.0

This commit is contained in:
Mehdi Mulani 2011-02-09 13:27:24 -08:00
Родитель 96cc46026e
Коммит 9dbe5b9731
1 изменённых файлов: 4 добавлений и 4 удалений

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

@ -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;
}