changeset 5835:5444be588d18

7197320: [macosx] Full Screen option missing when Window.documentModified Reviewed-by: anthony
author alexsch
date Fri, 14 Sep 2012 15:08:54 +0400
parents 5b7ad5bedbd7
children 77fdcd3df205
files src/macosx/native/sun/awt/AWTWindow.m
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/macosx/native/sun/awt/AWTWindow.m	Thu Sep 13 21:23:23 2012 +0400
+++ b/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];