Fix showing windows for background apps under macOS Sonoma

Change implementation to use Sonoma-supported version of the application
activation call.

See #23893, #24003.

(cherry picked from commit 695ca042895468a8ce6c1a84422882adb3c63ee9)
This commit is contained in:
Stefan Csomor 2023-10-27 14:18:17 +02:00 committed by Vadim Zeitlin
parent 79aac7a626
commit 3586813817
2 changed files with 7 additions and 2 deletions

View File

@ -250,6 +250,10 @@ wxMSW:
- Fix MSVS warning about redundant "const" in wx/itemid.h (#23590).
- Fix spurious memory leak reports when using static CRT.
wxOSX:
- Fix showing windows for background apps under macOS Sonoma (#23893).
3.2.3: (released 2023-10-10)
----------------------------

View File

@ -110,8 +110,9 @@ void wxBell()
activate = true;
}
if ( activate )
[NSApp activateIgnoringOtherApps: YES];
if ( activate ) {
[[NSRunningApplication currentApplication] activateWithOptions: NSApplicationActivateIgnoringOtherApps];
}
}
}