Skip to content

Commit

Permalink
fix #344
Browse files Browse the repository at this point in the history
  • Loading branch information
thisjaiden committed Jan 14, 2024
1 parent 4b4af73 commit f878b95
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/native/macosx/MacMiniFB.m
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,11 @@ static bool create_shaders() {

[window center];

[NSApp activateIgnoringOtherApps:YES];
// Must be wrapped for menus to work without reselecting window
// See https://github.com/emoon/rust_minifb/issues/334
dispatch_async(dispatch_get_main_queue(), ^{
[NSApp activateIgnoringOtherApps:YES];
});

if (!prev_init)
[NSApp finishLaunching];
Expand Down

0 comments on commit f878b95

Please sign in to comment.