diff --git a/src/platform/macos/input.cpp b/src/platform/macos/input.cpp index df36f87deb9..e4ab5ce8a41 100644 --- a/src/platform/macos/input.cpp +++ b/src/platform/macos/input.cpp @@ -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(); } } diff --git a/src/platform/macos/misc.mm b/src/platform/macos/misc.mm index 82f037d42a9..9403d0a00e2 100644 --- a/src/platform/macos/misc.mm +++ b/src/platform/macos/misc.mm @@ -521,17 +521,17 @@ bool request_accessibility_permission() { - NSDictionary* options = @{static_cast (kAXTrustedCheckOptionPrompt): @YES}; - return !AXIsProcessTrustedWithOptions(static_cast (options)); + NSDictionary* options = @{static_cast(kAXTrustedCheckOptionPrompt): @YES}; + return !AXIsProcessTrustedWithOptions(static_cast(options)); } bool has_accessibility_permission() { - NSDictionary* options = @{static_cast (kAXTrustedCheckOptionPrompt): @NO}; + NSDictionary* options = @{static_cast(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 (options)); + return AXIsProcessTrustedWithOptions(static_cast(options)); } } // namespace platf