Skip to content

rust: Extract hotkey background shortcut control before porting #4312

Closed

Description

@zackees

Phase 6 libobs core migration prerequisite, per testing-policy.md:189-201.

Extract the background shortcut control unit verbatim from libobs/obs-hotkey.c.h:875-917 into libobs/obs-hotkey-background-control.c.h: wake_background_client, obs_hotkeys_retry_background, obs_hotkeys_configure_background and obs_hotkeys_set_background_probe. Reuse the existing private hotkey lock/unlock seam without changing public headers, signatures, or behavior. Keep background press enablement out of scope.

Existing C characterization: test/cmocka/test_portal_shortcuts.c covers retry after decline/closure, probe enable/disable and editor configuration/failure. Preserve it unchanged; link the extracted source into every isolated consumer of obs-hotkey.c.h and keep native-build snapshots aligned. Validate focused native registration and portal tests, formatting and lint. No Rust implementation belongs in this prerequisite; follow-up targets obs-hotkey with Tier 1, unchanged Tier 2 and Tier 3 oracle coverage, after this extraction lands.

Collision search on current master found no Rust definitions, open issue/PR or pushed port/42*, port/43*, test/42*, test/43* branch changing these functions. Nearby identity-setter and routed-callback branches are disjoint. Deliver in BRANCH-ONLY mode while CI is backlogged; no PR until manager opens it.

Rust replacement follow-up: #4313. Prerequisite branch: port/4312-hotkey-background-control-extract.

Activity

  1. added
    enhancement
    port
    ready
    P2
    size:S
    on Nov 9, 2026
  2. zackees commented on Nov 9, 2026

    @zackees
    MemberAuthor

    Claiming: background shortcut control extraction (pool im-bo-g4-hkbg, slot obs-studio10), branch port/4312-hotkey-background-control-extract. 1. Move the four-function retry/configure/probe unit verbatim into its own .c.h using the existing private mutex seam. 2. Preserve existing portal characterization tests and register the extracted source for isolated consumers. 3. Run focused validation and full lint once, then push the branch only this session; no PR while the queue is backlogged. File the Rust swap as a follow-up after extraction.

  3. moved this from In progress to Ready in obs-rust Multiviewon Nov 10, 2026
  4. zackees commented on Nov 17, 2026

    @zackees
    MemberAuthor

    Landed in #4931 (merge d6dcbd6). The four background shortcut control functions were extracted verbatim into libobs/obs-hotkey-background-control.c.h and registered in the core group and all isolated consumers, covering the acceptance. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2enhancementportreadysize:S

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions