changeset 5623:f1909d3ab2a1

7197320: [macosx] Full Screen option missing when Window.documentModified Reviewed-by: anthony
author alexsch
date Mon, 14 Jan 2013 14:35:47 +0400
parents d6c538499353
children 2ad88a6b3693
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	Wed Dec 12 13:28:35 2012 +0800
+++ b/src/macosx/native/sun/awt/AWTWindow.m	Mon Jan 14 14:35:47 2013 +0400
@@ -198,8 +198,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];