Bug 1045000, deminiaturize before making the window key to fix flickering window, r=smichaud

This commit is contained in:
Neil Deakin 2014-08-19 20:01:32 -04:00
parent 07a26b75d3
commit f67b827576

View File

@ -1790,6 +1790,10 @@ NS_IMETHODIMP nsCocoaWindow::SetFocus(bool aState)
mPopupContentView->SetFocus(aState);
}
else if (aState && ([mWindow isVisible] || [mWindow isMiniaturized])) {
if ([mWindow isMiniaturized]) {
[mWindow deminiaturize:nil];
}
[mWindow makeKeyAndOrderFront:nil];
SendSetZLevelEvent();
}