Skip to content

Commit 3586813

Browse files
csomorvadz
authored andcommitted
Fix showing windows for background apps under macOS Sonoma
Change implementation to use Sonoma-supported version of the application activation call. See wxWidgets#23893, wxWidgets#24003. (cherry picked from commit 695ca04)
1 parent 79aac7a commit 3586813

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

docs/changes.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,10 @@ wxMSW:
250250
- Fix MSVS warning about redundant "const" in wx/itemid.h (#23590).
251251
- Fix spurious memory leak reports when using static CRT.
252252

253+
wxOSX:
254+
255+
- Fix showing windows for background apps under macOS Sonoma (#23893).
256+
253257

254258
3.2.3: (released 2023-10-10)
255259
----------------------------

src/osx/cocoa/utils.mm

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,9 @@ - (void)applicationDidFinishLaunching:(NSNotification *)notification
110110
activate = true;
111111
}
112112

113-
if ( activate )
114-
[NSApp activateIgnoringOtherApps: YES];
113+
if ( activate ) {
114+
[[NSRunningApplication currentApplication] activateWithOptions: NSApplicationActivateIgnoringOtherApps];
115+
}
115116
}
116117
}
117118

0 commit comments

Comments
 (0)