mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-17 22:32:51 +00:00
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:
parent
a585a070a1
commit
1a53f18128
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user