< prev index next >
modules/javafx.graphics/src/main/native-glass/mac/GlassWindow+Overrides.m
Print this page
*** 193,202 ****
--- 193,203 ----
}
- (void)windowWillEnterFullScreen:(NSNotification *)notification
{
//NSLog(@"windowWillEnterFullScreen");
+ [[self->view delegate] setResizableForFullscreen:YES];
}
- (void)windowDidEnterFullScreen:(NSNotification *)notification
{
//NSLog(@"windowDidEnterFullScreen");
*** 206,219 ****
- (void)windowWillExitFullScreen:(NSNotification *)notification
{
//NSLog(@"windowWillExitFullScreen");
}
- (void)windowDidExitFullScreen:(NSNotification *)notification
{
//NSLog(@"windowDidExitFullScreen");
! [(GlassViewDelegate*)[self->view delegate] sendJavaFullScreenEvent:NO withNativeWidget:YES];
[GlassApplication leaveFullScreenExitingLoopIfNeeded];
}
- (BOOL)windowShouldClose:(NSNotification *)notification
{
--- 207,225 ----
- (void)windowWillExitFullScreen:(NSNotification *)notification
{
//NSLog(@"windowWillExitFullScreen");
}
+
- (void)windowDidExitFullScreen:(NSNotification *)notification
{
//NSLog(@"windowDidExitFullScreen");
!
! GlassViewDelegate* delegate = (GlassViewDelegate*)[self->view delegate];
! [delegate setResizableForFullscreen:NO];
!
! [delegate sendJavaFullScreenEvent:NO withNativeWidget:YES];
[GlassApplication leaveFullScreenExitingLoopIfNeeded];
}
- (BOOL)windowShouldClose:(NSNotification *)notification
{
< prev index next >