From b897ac44214309c5b5b03b343e3da0b6bd0d4f6b Mon Sep 17 00:00:00 2001 From: Federico Terzi Date: Tue, 29 Jun 2021 20:31:08 +0200 Subject: [PATCH] fix(mac-utils): fix app not going on the foreground --- espanso-mac-utils/src/native.mm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/espanso-mac-utils/src/native.mm b/espanso-mac-utils/src/native.mm index f262e66..75ff286 100644 --- a/espanso-mac-utils/src/native.mm +++ b/espanso-mac-utils/src/native.mm @@ -81,6 +81,8 @@ int32_t mac_utils_prompt_accessibility() { void mac_utils_transition_to_foreground_app() { ProcessSerialNumber psn = { 0, kCurrentProcess }; TransformProcessType(&psn, kProcessTransformToForegroundApplication); + + [[NSApplication sharedApplication] activateIgnoringOtherApps : YES]; } void mac_utils_transition_to_background_app() {