Fixing bug 29027 - now we restore an iconified window when we send focus to it. r=law.

git-svn-id: svn://10.0.0.236/trunk@72081 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bryner%uiuc.edu
2000-06-13 01:16:31 +00:00
parent 160e455ff8
commit bdd43b4411

View File

@@ -1459,6 +1459,12 @@ NS_METHOD nsWindow::SetFocus(void)
}
if (mWnd) {
// Uniconify, if necessary
HWND toplevelWnd = mWnd;
while (::GetParent(toplevelWnd))
toplevelWnd = ::GetParent(toplevelWnd);
if (::IsIconic(toplevelWnd))
::OpenIcon(toplevelWnd);
::SetFocus(mWnd);
}
return NS_OK;