fix(mac-utils): fix app not going on the foreground

This commit is contained in:
Federico Terzi 2021-06-29 20:31:08 +02:00
parent 4ee1215fbc
commit b897ac4421

View File

@ -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() {