src/macosx/native/sun/awt/LWCToolkit.m

Print this page

        

*** 32,41 **** --- 32,42 ---- #import "LWCToolkit.h" #import "ThreadUtilities.h" #import "AWT_debug.h" #import "CSystemColors.h" #import "NSApplicationAWT.h" + #import "ApplicationDelegate.h" #import "sun_lwawt_macosx_LWCToolkit.h" #import "sizecalc.h"
*** 437,447 **** __block jboolean active = JNI_FALSE; JNF_COCOA_ENTER(env); [ThreadUtilities performOnMainThreadWaiting:YES block:^() { ! active = (jboolean)[NSRunningApplication currentApplication].active; }]; JNF_COCOA_EXIT(env); return active; --- 438,448 ---- __block jboolean active = JNI_FALSE; JNF_COCOA_ENTER(env); [ThreadUtilities performOnMainThreadWaiting:YES block:^() { ! active = (jboolean) [[ApplicationDelegate sharedDelegate] isAppActive]; }]; JNF_COCOA_EXIT(env); return active;