From b12a80e386b12d9d8fa63cf07124f8da989dcd04 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Mon, 9 Sep 2019 09:29:43 +0200 Subject: Bug 1393: Run orderFront0(=setVisible) async off-thread on AppKit after sync AppKit NSWindow creation MacOS 10.14.6 + OpenJDK11U produces occasional freezes on AppKit Main Thread Latest manual tests after resolving Bug 1389 disclosed a few occasional freezes using NEWT + Java11. These are related to probable AWT changes since Java8, as these do not occur with Java8. Fix: Spun off orderFront0(=setVisible) async off-thread on AppKit after sync AppKit NSWindow creation. This fix also aligns the macos createWindow code with the new simplified ios implementation, see commit 004c67c73a0309158c30929cd0d6513e23f34803 --- src/newt/native/IOSWindow.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/newt/native/IOSWindow.m') diff --git a/src/newt/native/IOSWindow.m b/src/newt/native/IOSWindow.m index b953c3146..9bc72c1ec 100644 --- a/src/newt/native/IOSWindow.m +++ b/src/newt/native/IOSWindow.m @@ -533,8 +533,8 @@ JNIEXPORT jlong JNICALL Java_jogamp_newt_driver_ios_WindowDriver_createWindow1 } DBG_PRINT( "createWindow1.1 - window %p, isHidden %d, rootViewController %p\n", myWindow, [myWindow isHidden], myWindow.rootViewController); - CGRect rectView = CGRectMake(0, 0, w, h); if( NULL == myView ) { + CGRect rectView = CGRectMake(0, 0, w, h); myView = [[NewtUIView alloc] initWithFrame: rectView] ; } CAEAGLLayer* l = (CAEAGLLayer*)[myView layer]; -- cgit v1.2.3