You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
rust: Port obs-nix-hotkey-state.c to obs-hotkey #1514
Port libobs/obs-nix-hotkey-state.c.h to obs-hotkey: the Linux/Wayland key and shortcut state machine (147 lines, its own TU in libobs.nix-wayland). It came from our Wayland hotkey work.
Phase and position
Phase 6 (libobs host code, Linux). The hotkey name map is already in obs-hotkey (#833).
Dependencies and existing tests
It locks obs->hotkeys.mutex, a field of obs-internal.h. Per testing-policy.md, a C caller that reaches into obs-internal.h gets a behaviour-neutral accessor first, in its own PR, with the existing C tests passing; then the unit is ported.
test_wayland_hotkeys (8 cases) and test_portal_shortcuts (28) cover it, but they compile the C into themselves (obs=hotkey_test_obs), so a Rust swap is invisible to them, as with scene-bounds. The port's proof is Tier 3 parity against the C oracle, with those tests unchanged.
Plan
Behaviour-neutral PR: a hidden C accessor for the hotkey lock, used by obs-nix-hotkey-state.c.h; no other change.
Port PR after 1 lands: Rust in obs-hotkey, shim swap under ENABLE_RUST_LIBOBS=ON, Tier 1, layout, Tier 3 parity, Tier 2 OFF/ON unchanged.
No intended behaviour changes. Public headers, exported signatures and existing C tests stay as they are.
Activity
rdoupe commentedon Oct 20, 2026
Claiming: #1514
obs-nix-hotkey-state.c.h, existing tests unchanged.First PR expected today.
libobs: Lock the hotkey mutex through a hidden accessor (obs-rust#1515)
libobs: Port the Wayland hotkey key state to obs-hotkey (obs-rust#1516)