< prev index next >

modules/javafx.graphics/src/main/native-glass/mac/GlassViewDelegate.m

Print this page

        

@@ -1042,10 +1042,25 @@
     (*env)->CallVoidMethod(env, self->jView, jViewNotifyEvent,
             entered ? com_sun_glass_events_ViewEvent_FULLSCREEN_ENTER : com_sun_glass_events_ViewEvent_FULLSCREEN_EXIT);
     GLASS_CHECK_EXCEPTION(env);
 }
 
+- (void)setResizableForFullscreen:(BOOL)resizable
+{
+    NSWindow* window =  [self->nsView window];
+    if ([window isKindOfClass:[GlassEmbeddedWindow class]] == NO
+        && !((GlassWindow*) window)->isResizable) {
+        NSUInteger mask = [window styleMask];
+        if (resizable) {
+            mask |= NSResizableWindowMask;
+        } else {
+            mask &= ~(NSUInteger)NSResizableWindowMask;
+        }
+        [window setStyleMask: mask];
+    }
+}
+
 /*
  The hierarchy for our view is view -> superview (host) -> window
 
  1. create superview (new host) for our view
  2. create fullscreen window with the new superview
< prev index next >