From e44a488f7be64fe64670f27b84634759d6c7d7e7 Mon Sep 17 00:00:00 2001 From: "joshmoz%gmail.com" Date: Tue, 23 May 2006 19:47:43 +0000 Subject: [PATCH] =?UTF-8?q?set=20minimum=20size=20on=20all=20windows,=20al?= =?UTF-8?q?so=20keep=20invisible=20windows=20out=20of=20Expos=EF=BF=BD?= =?UTF-8?q?=EF=BF=BD.b=3D338723=20r=3Dmento?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- widget/src/cocoa/nsCocoaWindow.mm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/widget/src/cocoa/nsCocoaWindow.mm b/widget/src/cocoa/nsCocoaWindow.mm index bc9d56b920aa..cde40b89cb00 100644 --- a/widget/src/cocoa/nsCocoaWindow.mm +++ b/widget/src/cocoa/nsCocoaWindow.mm @@ -360,6 +360,11 @@ nsresult nsCocoaWindow::StandardCreate(nsIWidget *aParent, [mWindow setLevel:NSPopUpMenuWindowLevel]; [mWindow setHasShadow:YES]; } + else if (mWindowType == eWindowType_invisible) { + [mWindow setLevel:kCGDesktopWindowLevelKey]; + } + + [mWindow setContentMinSize:NSMakeSize(60, 60)]; [mWindow setReleasedWhenClosed:NO];