Bug 1276120, hide popups when a parent window is being minimized, handles the case where the window is minimized via a keyboard shortcut, r=jmathies

This commit is contained in:
Neil Deakin 2016-06-03 13:59:34 -04:00
parent a585a070a1
commit 1a53f18128

View File

@ -7520,6 +7520,13 @@ nsWindow::DealWithPopups(HWND aWnd, UINT aMessage,
// automatically activate the popup on the mousedown otherwise.
return true;
case WM_SHOWWINDOW:
// If the window is being minimized, close popups.
if (aLParam == SW_PARENTCLOSING) {
break;
}
return false;
case WM_KILLFOCUS:
// If focus moves to other window created in different process/thread,
// e.g., a plugin window, popups should be rolled up.