Add native per-program hook exclusions

Parse --exclude-hook-program in the helper, gate foreground hooks and dialog reading by program, and forward the list to the 32-bit hook host. Emit the flags from the Orca extension and cover the matching, validation, and manager behavior with regression tests.
This commit is contained in:
hjozwiak committed 2026-11-01 21:15:59 -05:00
1 parent 0db42de77e
commit 78b70e1ab9
11 files changed
+278 -8

No files matched your search

+5
View File
@@ -104,6 +104,11 @@ if(BUILD_TESTING)
target_compile_options(text-limits-test PRIVATE -Wall -Wextra)
target_link_libraries(text-limits-test PRIVATE PkgConfig::GIO user32)
add_wine_test(text-limits 35 dbus-run-session -- "${CMAKE_CURRENT_BINARY_DIR}/text-limits-test.exe")
add_executable(hook-exclusions-test tests/hook_exclusions_test.cpp)
target_compile_features(hook-exclusions-test PRIVATE cxx_std_20)
target_compile_options(hook-exclusions-test PRIVATE -Wall -Wextra)
target_link_libraries(hook-exclusions-test PRIVATE user32)
add_wine_test(hook-exclusions 35 "${CMAKE_CURRENT_BINARY_DIR}/hook-exclusions-test.exe")
add_executable(review-capture-test tests/review_capture_test.cpp)
target_compile_features(review-capture-test PRIVATE cxx_std_20)
target_compile_options(review-capture-test PRIVATE -Wall -Wextra)