Skip to content

Commit

Permalink
chore: lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Hazer committed May 7, 2024
1 parent b05c75c commit 2340497
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/platform/macos/input.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ const KeyCodeMap kKeyCodesMap[] = {
request_accessibility_permission();
}
BOOST_LOG(info) << "Received " << (is_keyboard_event ? "keyboard" : "mouse") << " event but "
<< default_accessibility_log_msg();
<< default_accessibility_log_msg();
}
}

Expand Down
8 changes: 4 additions & 4 deletions src/platform/macos/misc.mm
Original file line number Diff line number Diff line change
Expand Up @@ -521,17 +521,17 @@

bool
request_accessibility_permission() {
NSDictionary* options = @{static_cast<id> (kAXTrustedCheckOptionPrompt): @YES};
return !AXIsProcessTrustedWithOptions(static_cast<CFDictionaryRef> (options));
NSDictionary* options = @{static_cast<id>(kAXTrustedCheckOptionPrompt): @YES};
return !AXIsProcessTrustedWithOptions(static_cast<CFDictionaryRef>(options));
}

bool
has_accessibility_permission() {
NSDictionary* options = @{static_cast<id> (kAXTrustedCheckOptionPrompt): @NO};
NSDictionary* options = @{static_cast<id>(kAXTrustedCheckOptionPrompt): @NO};
// We use kAXTrustedCheckOptionPrompt == NO here,
// instead of using XIsProcessTrusted(),
// because this will update the accessibility list with sunshine current path
return AXIsProcessTrustedWithOptions(static_cast<CFDictionaryRef> (options));
return AXIsProcessTrustedWithOptions(static_cast<CFDictionaryRef>(options));
}

} // namespace platf
Expand Down

0 comments on commit 2340497

Please sign in to comment.