< prev index next >
modules/javafx.graphics/src/main/native-glass/mac/GlassWindow.m
Print this page
*** 512,524 ****
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)
{
! // Only titled 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
--- 512,524 ----
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 ((jStyleMask&com_sun_glass_ui_Window_POPUP) == 0 && !window->owner)
{
! // 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 >