7197320: [macosx] Full Screen option missing when Window.documentModified
Reviewed-by: anthony
--- a/jdk/src/macosx/native/sun/awt/AWTWindow.m Thu Sep 13 21:23:23 2012 +0400
+++ b/jdk/src/macosx/native/sun/awt/AWTWindow.m Fri Sep 14 15:08:54 2012 +0400
@@ -178,8 +178,8 @@
[self.nsWindow setDocumentEdited:IS(bits, DOCUMENT_MODIFIED)];
}
- if ([self.nsWindow respondsToSelector:@selector(toggleFullScreen:)]) {
- if (IS(mask, FULLSCREENABLE)) {
+ if (IS(mask, FULLSCREENABLE) && [self.nsWindow respondsToSelector:@selector(toggleFullScreen:)]) {
+ if (IS(bits, FULLSCREENABLE)) {
[self.nsWindow setCollectionBehavior:(1 << 7) /*NSWindowCollectionBehaviorFullScreenPrimary*/];
} else {
[self.nsWindow setCollectionBehavior:NSWindowCollectionBehaviorDefault];