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:
smfr%smfr.org 2005-12-20 06:34:51 +00:00
Родитель a6da7a7aba
Коммит 2af136f3a0
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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])
{