From 4390ea064454f5696253eebc2c72726eda1ae340 Mon Sep 17 00:00:00 2001 From: "mark%moxienet.com" Date: Wed, 26 Apr 2006 15:07:33 +0000 Subject: [PATCH] 322044 When Camino is hidden, invoking via Service does not respect external app pref. 333974 Same thing when clicking links in other applications. Use non-visible windows when the app is hidden. r=smfr git-svn-id: svn://10.0.0.236/trunk@195442 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/camino/src/application/MainController.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mozilla/camino/src/application/MainController.mm b/mozilla/camino/src/application/MainController.mm index 7538565a07c..3ecf699b657 100644 --- a/mozilla/camino/src/application/MainController.mm +++ b/mozilla/camino/src/application/MainController.mm @@ -999,7 +999,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] || [curWindow isMiniaturized]) && + if (([curWindow isVisible] || [curWindow isMiniaturized] || [NSApp isHidden]) && [[curWindow windowController] isMemberOfClass:[BrowserWindowController class]] && [[curWindow windowController] hasFullBrowserChrome]) { @@ -1024,7 +1024,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] || [curWindow isMiniaturized]) && + if (([curWindow isVisible] || [curWindow isMiniaturized] || [NSApp isHidden]) && [[curWindow windowController] isMemberOfClass:[BrowserWindowController class]] && [[curWindow windowController] hasFullBrowserChrome]) {