File tree 1 file changed +9
-7
lines changed
modules/javafx.graphics/src/main/native-glass/mac
1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -295,13 +295,15 @@ - (void)applicationDidFinishLaunching:(NSNotification *)aNotification
295
295
[pool drain ];
296
296
GLASS_CHECK_EXCEPTION (env);
297
297
298
- if (!NSApp .isActive && requiresActivation) {
299
- // As of macOS 14, application gets to the foreground,
300
- // but it doesn't get activated, so this is needed:
301
- LOG (" -> need to active application" );
302
- dispatch_async (dispatch_get_main_queue (), ^{
303
- [NSApp activate ];
304
- });
298
+ if (@available (macOS 14.0 , *)) {
299
+ if (!NSApp .isActive && requiresActivation) {
300
+ // As of macOS 14, application gets to the foreground,
301
+ // but it doesn't get activated, so this is needed:
302
+ LOG (" -> need to active application" );
303
+ dispatch_async (dispatch_get_main_queue (), ^{
304
+ [NSApp activate ];
305
+ });
306
+ }
305
307
}
306
308
}
307
309
You can’t perform that action at this time.
0 commit comments