mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-19 16:25:38 +00:00
Bug 509449 - Minimized browser window restores during page loads. r=jimm.
This commit is contained in:
parent
a48127faaf
commit
9ea057c69d
@ -1553,8 +1553,9 @@ NS_METHOD nsWindow::SetFocus(PRBool aRaise)
|
||||
if (mWnd) {
|
||||
// Uniconify, if necessary
|
||||
HWND toplevelWnd = GetTopLevelHWND(mWnd);
|
||||
if (::IsIconic(toplevelWnd))
|
||||
if (aRaise && ::IsIconic(toplevelWnd)) {
|
||||
::ShowWindow(toplevelWnd, SW_RESTORE);
|
||||
}
|
||||
::SetFocus(mWnd);
|
||||
}
|
||||
return NS_OK;
|
||||
|
Loading…
Reference in New Issue
Block a user