set minimum size on all windows, also keep invisible windows out of Expos��.b=338723 r=mento

This commit is contained in:
joshmoz%gmail.com 2006-05-23 19:47:43 +00:00
parent 101371d410
commit e44a488f7b

View File

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