diff options
Diffstat (limited to 'src/macosx/native/sun/awt/splashscreen/splashscreen_sys.m')
-rw-r--r-- | src/macosx/native/sun/awt/splashscreen/splashscreen_sys.m | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/macosx/native/sun/awt/splashscreen/splashscreen_sys.m b/src/macosx/native/sun/awt/splashscreen/splashscreen_sys.m index 44b28f032..40f380bde 100644 --- a/src/macosx/native/sun/awt/splashscreen/splashscreen_sys.m +++ b/src/macosx/native/sun/awt/splashscreen/splashscreen_sys.m @@ -142,10 +142,9 @@ SplashInitPlatform(Splash * splash) { splash->screenFormat.byteOrder = 1 ? BYTE_ORDER_LSBFIRST : BYTE_ORDER_MSBFIRST; splash->screenFormat.depthBytes = 4; - dispatch_async(dispatch_get_main_queue(), ^(void) { - NSApplication * app = [NSApplicationAWT sharedApplication]; - [NSApplicationAWT runAWTLoopWithApp: app]; - }); + [JNFRunLoop performOnMainThreadWaiting:NO withBlock:^() { + [NSApplicationAWT runAWTLoopWithApp:[NSApplicationAWT sharedApplication]]; + }]; } void |