Skip to content

fix: primary display from Windows' own flag; embed only rtss-cli - #110

Merged
lippdev merged 1 commit into
mainfrom
fix/primary-flag-and-tools-embed
Sep 29, 2026
Merged

lippdev merged 1 commit into
mainfrom
fix/primary-flag-and-tools-embed

Conversation

@lippdev

@lippdev lippdev commented Sep 29, 2026 •

Copy link
Copy Markdown
Owner

Two small leftovers from the native-backend review (#91).

  • IsPrimary: was "active and at (0,0)", which is ambiguous with cloned screens (several share the origin) and could pick the wrong OriginalPrimary for the backup. It now uses MONITORINFOF_PRIMARY (NativeDisplays.IsPrimary). Checked on the real code: only the active display reports primary, the inactive ones don't.
  • csproj: artifacts\tools\*.exe embedded any leftover MultiMonitorTool/SoundVolumeView from older local builds. It is now rtss-cli*.exe. Verified: the built dll embeds only ConsoleMode.Tools.rtss-cli.exe, even with the old exes still in the folder. The wildcard form keeps a missing file from failing the build (CI).

No user-visible change on a normal extended setup, so no changelog entry. Build OK, 144 tests pass.

🤖 Generated with Claude Code

- MonitorInfo.IsPrimary was "active and at (0,0)", ambiguous when screens are cloned (several
  share the origin). It now uses MONITORINFOF_PRIMARY through NativeDisplays.IsPrimary.
- The csproj embedded artifacts/tools/*.exe, so a leftover MultiMonitorTool/SoundVolumeView
  from an older build ended up inside the exe (never extracted, just dead weight). It embeds
  rtss-cli*.exe only; CI is unaffected (it never had the others).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Reviewed changes

  • Primary monitor detection: DisplayBackend now gets primary status from Windows’ MONITORINFOF_PRIMARY flag using the monitor’s GDI name.
  • Embedded tools: ConsoleMode.csproj now embeds only rtss-cli*.exe from the tools directory.

Pullfrog  | View workflow run | Using GPT Luna | 𝕏

@lippdev
lippdev merged commit f419678 into main Sep 29, 2026
5 checks passed
@lippdev
lippdev deleted the fix/primary-flag-and-tools-embed branch September 29, 2026 13:13
lippdev added a commit to nextestudios/consolemode that referenced this pull request Sep 30, 2026
The fixes merged since 1.6.0-alpha.2 were missing from CHANGELOG.md and
CHANGELOG.en-US.md: the failed audio output switch (lippdev#109) and the primary
display from Windows' own flag (lippdev#110), plus the rtss-cli-only package.
The Playnite item now points at the PR number (lippdev#83) instead of the issue.

docs/TESTING.md gets the two manual checks those fixes need (cloned screens
and a slow-starting Playnite).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant