Skip to content

obs-hotkey: port background combination query (#3969) - #3970

Merged
zackees merged 5 commits into
masterfrom
port/3969-hotkey-background-query
Nov 8, 2026
Merged

zackees merged 5 commits into
masterfrom
port/3969-hotkey-background-query

Conversation

@zackees

@zackees zackees commented Nov 8, 2026 •

Copy link
Copy Markdown
Member

Port the public background-combination query to obs-hotkey. Preserve the native-state early return, lazy identifier lookup, pointer-presence result and identifier release. No intentional behavior differences. Fixes #3969.

History: actual-library C characterization in 987ef58, verbatim building C extraction in b9edc74, Tier 1 RED in 0095432 and GREEN in 85ae7f3. RED fails both cases at the deliberate stub. The extracted source remains registered in every isolated C consumer; the native graph snapshot is updated without weakening assertions.

Validation: all four new Rust tests pass, including real-header combination layout and exact callback-based C differential coverage. Reversing the native predicate makes the differential test fail; the implementation was restored. Proptest persistence is disabled. The complete native-build module passes 187 tests, utilities pass 914 tests and two doctest runs, and the required discovery, registration, portability, sorting and Rust inventory checks pass.

Both actual libraries pass 35 C cases each, including all 32 unchanged portal-shortcut cases, with loader proof. Their 1,767 dynamic exports are identical. GCC and Clang pass strict source, oracle and characterization replay with format-nonliteral warnings treated as errors. The focused original C query and characterization pass ASan/UBSan linked against each backend. Full serial repository lint passes. One local reviewer reports clean.

Test cost: over 25 reduced-parity runs of the four new cases, longest run 0.01 seconds and peak RSS 15,892 KiB. No test-owned threads; differential allocation accounting uses one isolated child process. Tests remain in the existing category binary. Public headers and existing C test bodies are unchanged. Tier 4 does not apply to this local query.

@zackees
zackees force-pushed the port/3969-hotkey-background-query branch from ab1361d to 264d6fa Compare November 8, 2026 03:19
@zackees
zackees marked this pull request as ready for review November 8, 2026 03:19
@zackees
zackees enabled auto-merge November 8, 2026 03:19
@zackees
zackees disabled auto-merge November 8, 2026 03:31
@zackees
zackees added this pull request to the merge queue Nov 8, 2026
Merged via the queue into master with commit 04dd675 Nov 8, 2026
41 checks passed
@zackees
zackees deleted the port/3969-hotkey-background-query branch November 8, 2026 04:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

rust: Port obs_hotkey_combination_is_background to obs-hotkey

1 participant