Skip to content

Test control: the window screenshot takes the launcher's part of the screen - #555

Merged
elripalda merged 1 commit into
mainfrom
claude/project-thread-d49tbl
Nov 25, 2026
Merged

elripalda merged 1 commit into
mainfrom
claude/project-thread-d49tbl

Conversation

@elripalda

Copy link
Copy Markdown
Owner

Requested by Ruben · project thread

What this changes

Found while trying test control (#548) on a real Windows PC with Beta 69: the screenshot tool's window picture always failed with "The launcher's window is minimized or hidden", even with the window shown. The full-screen picture (screen: true) worked.

Cause: xcap's window list deliberately leaves out windows of the process asking (reading their titles from their own process can hang), so the launcher never found its own window.

Fix: the window picture now takes the launcher's part of its screen, using the window's own position and size from Tauri, cut to the screen it's on. Only the test control module changes.

How you tested it

  • cargo test --lib test_control passes (34, 4 new for the clipping)
  • cargo check --target x86_64-pc-windows-gnu is clean
  • Not yet run on the Windows PC with this fix; the full-screen capture it now shares code with works there.

Checklist

  • One change per pull request
  • Not a fix for one recomp's own quirks
  • No version bump or patch notes
  • Doesn't change what developers can write in recomplauncher.json

Generated by Claude Code

…screen

xcap's window list leaves out the windows of the process asking, so the launcher's own window was
never found and the window screenshot always said it was hidden. It now takes the launcher's part
of its screen, from the window's own position and size.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@elripalda
elripalda merged commit a9e827c into main Nov 25, 2026
6 checks passed
@elripalda
elripalda deleted the claude/project-thread-d49tbl branch November 25, 2026 08:00
elripalda added a commit that referenced this pull request Nov 25, 2026
These five fixes were merged before their review. They come back as
fresh pull requests once they've been looked at.

Co-authored-by: Ripalda <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
@orca-bots

orca-bots Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Issue Triage

Lost track of this on Xarishark’s computer. It may still finish. Check Orca.

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