mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-25 01:30:10 +00:00
7197320: [macosx] Full Screen option missing when Window.documentModified
Reviewed-by: anthony
This commit is contained in:
parent
ffadb2c6a5
commit
43349040a2
@ -178,8 +178,8 @@ AWT_NS_WINDOW_IMPLEMENTATION
|
||||
[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];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user