changeset 10331:dee28a9ba226 jdk-9+157

8144258: Ensemble Advanced Media sample hangs after going full screen Reviewed-by: kcr, azvegint
author vadim
date Thu, 09 Feb 2017 18:49:30 +0300
parents 9bdcf1b4cc72
children 410ed155716a 4d54d80ba44d
files modules/javafx.graphics/src/main/native-glass/mac/GlassApplication.m modules/javafx.graphics/src/main/native-glass/mac/GlassViewDelegate.m
diffstat 2 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/modules/javafx.graphics/src/main/native-glass/mac/GlassApplication.m	Fri Feb 10 09:12:35 2017 +0530
+++ b/modules/javafx.graphics/src/main/native-glass/mac/GlassApplication.m	Thu Feb 09 18:49:30 2017 +0300
@@ -704,6 +704,9 @@
 
 + (void)enterFullScreenExitingLoop
 {
+    if (isFullScreenExitingLoop) {
+        return;
+    }
     isFullScreenExitingLoop = YES;
     GET_MAIN_JENV;
     (*env)->CallStaticObjectMethod(env, jApplicationClass,
--- a/modules/javafx.graphics/src/main/native-glass/mac/GlassViewDelegate.m	Fri Feb 10 09:12:35 2017 +0530
+++ b/modules/javafx.graphics/src/main/native-glass/mac/GlassViewDelegate.m	Thu Feb 09 18:49:30 2017 +0300
@@ -190,6 +190,9 @@
     [self->fullscreenWindow release];
     self->fullscreenWindow = nil;
 
+    [self->nativeFullScreenModeWindow release];
+    self->nativeFullScreenModeWindow = nil;
+
     [GlassTouches stopTracking:self];
 
     GET_MAIN_JENV;