diff --git a/modules/javafx.graphics/src/main/native-glass/mac/GlassApplication.m b/modules/javafx.graphics/src/main/native-glass/mac/GlassApplication.m index b543b5d6392..f01be7d0f56 100644 --- a/modules/javafx.graphics/src/main/native-glass/mac/GlassApplication.m +++ b/modules/javafx.graphics/src/main/native-glass/mac/GlassApplication.m @@ -283,11 +283,8 @@ - (void)applicationDidFinishLaunching:(NSNotification *)aNotification // but it doesn't get activated, so this is needed: LOG("-> need to active application"); dispatch_async(dispatch_get_main_queue(), ^{ - [NSApp performSelector: @selector(activate)]; + [NSApp activateIgnoringOtherApps:YES]; }); - // TODO: performSelector is used only to avoid a compiler - // warning with the 13.3 SDK. After updating to SDK 14 - // this can be converted to a standard call. } }