diff options
author | Sven Gothel <[email protected]> | 2019-09-09 09:29:43 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2019-09-09 09:29:43 +0200 |
commit | b12a80e386b12d9d8fa63cf07124f8da989dcd04 (patch) | |
tree | 836b6f9b5e29bbeb56d8d3006d230fea000bf658 /src/newt/native/IOSWindow.m | |
parent | db843e65c6b93d720438c7e751413c0556f51a6e (diff) |
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
Diffstat (limited to 'src/newt/native/IOSWindow.m')
-rw-r--r-- | src/newt/native/IOSWindow.m | 2 |
1 files changed, 1 insertions, 1 deletions
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]; |