зеркало из https://github.com/mozilla/pjs.git
Fix bug 320845: when a window is miniaturized in the dock, clicking on the app icon should bring it back. Fixed by allowing miniaturized windows to be returned by -getFrontmostBrowserWindow, and included in -browserWindows.
This commit is contained in:
Родитель
a6da7a7aba
Коммит
2af136f3a0
|
@ -1006,7 +1006,7 @@ Otherwise, we return the URL we originally got. Right now this supports .url and
|
|||
// an empty chrome mask, or ones with a toolbar, status bar, and resize control
|
||||
// to be real top-level browser windows for purposes of saving size and
|
||||
// loading urls in. Others are popups and are transient.
|
||||
if ([curWindow isVisible] &&
|
||||
if (([curWindow isVisible] || [curWindow isMiniaturized]) &&
|
||||
[[curWindow windowController] isMemberOfClass:[BrowserWindowController class]] &&
|
||||
[[curWindow windowController] hasFullBrowserChrome])
|
||||
{
|
||||
|
@ -1031,7 +1031,7 @@ Otherwise, we return the URL we originally got. Right now this supports .url and
|
|||
// an empty chrome mask, or ones with a toolbar, status bar, and resize control
|
||||
// to be real top-level browser windows for purposes of saving size and
|
||||
// loading urls in. Others are popups and are transient.
|
||||
if ([curWindow isVisible] &&
|
||||
if (([curWindow isVisible] || [curWindow isMiniaturized]) &&
|
||||
[[curWindow windowController] isMemberOfClass:[BrowserWindowController class]] &&
|
||||
[[curWindow windowController] hasFullBrowserChrome])
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче