< prev index next >
modules/javafx.graphics/src/main/native-glass/mac/GlassWindow.m
Print this page
@@ -512,13 +512,13 @@
window->isResizable = NO;
window->isDecorated = (jStyleMask&com_sun_glass_ui_Window_TITLED) != 0;
/* 10.7 full screen window support */
if ([NSWindow instancesRespondToSelector:@selector(toggleFullScreen:)]) {
NSWindowCollectionBehavior behavior = [window->nsWindow collectionBehavior];
- if (window->isDecorated && !window->owner)
+ if ((jStyleMask&com_sun_glass_ui_Window_POPUP) == 0 && !window->owner)
{
- // Only titled ownerless windows should have the Full Screen Toggle control
+ // Only ownerless windows should have the Full Screen Toggle control
behavior |= (1 << 7) /* NSWindowCollectionBehaviorFullScreenPrimary */;
}
else
{
// Other windows are only allowed to be shown together with a primary
< prev index next >