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];