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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user