From a789e49000cf8069450e014ee5d8cecd16d10e31 Mon Sep 17 00:00:00 2001 From: Matthew Newville Date: Sun, 28 Aug 2022 18:07:13 -0500 Subject: [PATCH] OSX: remove check of SetFrontProcess() before App may be fully initialized --- src/app_ex.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/app_ex.cpp b/src/app_ex.cpp index 40e3cb0d..39b414e2 100644 --- a/src/app_ex.cpp +++ b/src/app_ex.cpp @@ -335,11 +335,7 @@ bool wxPyApp::IsDisplayAvailable() // // [NSRunningApplication activateIgnoringOtherApps: YES] ?? // - if (GetCurrentProcess(&psn) < 0 || SetFrontProcess(&psn) < 0) { - rv = false; - } else { - rv = true; - } + rv = true; } return rv; #endif