зеркало из https://github.com/mozilla/pjs.git
Fixing bug 29027 - now we restore an iconified window when we send focus to it. r=law.
This commit is contained in:
Родитель
f065e6ca36
Коммит
1ff8d73116
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче