Skip to content

frontend: main window platform behavior behind host feature headers (#871) - #2183

Merged
zackees merged 2 commits into
masterfrom
facade/871-obsbasic
Oct 24, 2026
Merged

zackees merged 2 commits into
masterfrom
facade/871-obsbasic

Conversation

@zackees

@zackees zackees commented Oct 24, 2026

Copy link
Copy Markdown
Member

Fixes #871.

RED: the test commit adds test_frontend_obsbasic_host, which fails to compile because frontend/widgets/obsbasic-{linux,macos,windows}.hpp don't exist yet.
GREEN: three self-guarded host headers, included from OBSBasic.hpp, name features instead of platforms:

  • OBS_BASIC_WINDOWS: Qt6Network preload, drop style and early show, Repair, native messages, display affinity
  • OBS_BASIC_MACOS: shortcuts and menu roles, Qt-driven quit and deferred deletes, colorspace, fullscreen menu
  • OBS_BASIC_UPDATER and OBS_BASIC_CRASH_LOGS: Windows and macOS
  • OBS_BASIC_QUIT_SHORTCUT: Linux
  • OBS_BASIC_PROCESS_PRIORITY: Windows, with its two inline functions moved into the Windows header
  • the macOS tray icon paths, theme and mask, plus DEFAULT_CONTAINER

OBSBasic.cpp.hpp and OBSBasic.hpp now have no platform macros, and their 23 findings leave the baseline. Each feature covers exactly the platforms the old conditionals did. OBSBasic.hpp is a frontend-internal header, not public API.

The one textual difference: on non-macOS platforms the tray icons now call setIsMask(false), which is Qt's default.

@zackees
zackees added this pull request to the merge queue Oct 24, 2026
Merged via the queue into master with commit 6c98110 Oct 24, 2026
35 checks passed
@zackees
zackees deleted the facade/871-obsbasic branch October 26, 2026 15:43
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.

facade: frontend/widgets/OBSBasic.cpp and OBSBasic.hpp: move 27 platform conditionals behind frontend/utility/platform.hpp

1 participant