diff --git a/platform/osx/os_osx.mm b/platform/osx/os_osx.mm index 49c4f755d38..bfa7194a1a2 100644 --- a/platform/osx/os_osx.mm +++ b/platform/osx/os_osx.mm @@ -1873,8 +1873,12 @@ void OS_OSX::alert(const String &p_alert, const String &p_title) { [window setAlertStyle:NSAlertStyleWarning]; // Display it, then release + id key_window = [[NSApplication sharedApplication] keyWindow]; [window runModal]; [window release]; + if (key_window) { + [key_window makeKeyAndOrderFront:nil]; + } } Error OS_OSX::open_dynamic_library(const String p_path, void *&p_library_handle, bool p_also_set_library_path) {