Skip to content

frontend: main window controls through the platform facade (#873) - #2037

Merged
zackees merged 2 commits into
masterfrom
infra/873-maincontrols
Oct 24, 2026
Merged

zackees merged 2 commits into
masterfrom
infra/873-maincontrols

Conversation

@zackees

@zackees zackees commented Oct 24, 2026 •

Copy link
Copy Markdown
Member

Refs #873 (OBSBasic_MainControls).

Moves 4 of the 5 host conditionals in frontend/widgets/OBSBasic_MainControls.cpp.hpp behind the platform facade:

Was Now
__APPLE__ permission dialog in on_actionShowMacPermissions_triggered ShowPlatformPermissionsDialog(QWidget *): macOS shows OBSPermissions; a no-op elsewhere
!_WIN32 CloseDialogs() before the always-on-top toggle PlatformRecreatesWindowsOnTopToggle(): false on Windows only
__APPLE__ EnableOSXDockIcon(false/true) in ToggleShowHide SetPlatformDockIconVisible, from #2025

RED test_main_controls_go_through_the_facade fails on master. GREEN it passes, and ./lint is clean.

Full run 40056113916, on the stacked branch before the rebase: Windows x64/arm64, macOS arm64/x86_64, Ubuntu (OBS-Studio-Rust) and Flatpak all built successfully. #2029 has merged, and this branch is rebased onto master.

@zackees
zackees force-pushed the infra/873-maincontrols branch from 26ecfb4 to d0345e5 Compare October 24, 2026 03:32
@zackees
zackees marked this pull request as ready for review October 24, 2026 03:32
@zackees
zackees enabled auto-merge October 24, 2026 03:32
@zackees
zackees added this pull request to the merge queue Oct 24, 2026
Merged via the queue into master with commit 88a9c0e Oct 24, 2026
31 checks passed
@zackees
zackees deleted the infra/873-maincontrols branch October 26, 2026 15:45
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.

1 participant