Skip to content

frontend: small main window quirks through the platform facade (#873) - #2020

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

zackees merged 2 commits into
masterfrom
infra/873-small-widgets

Conversation

@zackees

@zackees zackees commented Oct 24, 2026

Copy link
Copy Markdown
Member

Refs #873 (OBSBasic_Preview, _Hotkeys, _Projectors, _SceneItems)

Moves the one host conditional in each of these four widget files behind frontend/utility/platform.hpp:

File Was Now
OBSBasic_Preview __linux__ non-native color dialog existing PlatformNeedsNonNativeColorDialog() (true on Linux only, as before)
OBSBasic_Hotkeys _WIN32 meta key name GetPlatformMetaKeyText(): Hotkeys.Windows / Hotkeys.Super
OBSBasic_Projectors __APPLE__ || _WIN32 screen name GetPlatformScreenName(QScreen *): name() on Windows/macOS, trimmed model() on Linux/BSD
OBSBasic_SceneItems __APPLE__ macOS 13 SCK audio PlatformUsesDesktopAudioDevice(): false on macOS 13+

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

@zackees

zackees commented Oct 24, 2026

Copy link
Copy Markdown
Member Author

Full run 40050617986: Windows x64/arm64, macOS arm64/x86_64, Ubuntu (OBS-Studio-Rust) and Flatpak all built successfully.

@zackees
zackees marked this pull request as ready for review October 24, 2026 01:52
@zackees
zackees added this pull request to the merge queue Oct 24, 2026
Merged via the queue into master with commit 5db021c Oct 24, 2026
66 checks passed
@zackees
zackees deleted the infra/873-small-widgets 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