Skip to content

Commit 0f540e2

Browse files
8348744: Application window not always activated on macOS 15
Reviewed-by: angorya Backport-of: f55f5c6
1 parent 7f3e320 commit 0f540e2

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

modules/javafx.graphics/src/main/native-glass/mac/GlassApplication.m

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -283,11 +283,8 @@ - (void)applicationDidFinishLaunching:(NSNotification *)aNotification
283283
// but it doesn't get activated, so this is needed:
284284
LOG("-> need to active application");
285285
dispatch_async(dispatch_get_main_queue(), ^{
286-
[NSApp performSelector: @selector(activate)];
286+
[NSApp activateIgnoringOtherApps:YES];
287287
});
288-
// TODO: performSelector is used only to avoid a compiler
289-
// warning with the 13.3 SDK. After updating to SDK 14
290-
// this can be converted to a standard call.
291288
}
292289
}
293290

0 commit comments

Comments
 (0)