Skip to content

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

Merged
elripalda merged 3 commits into
mainfrom
claude/project-thread-d49tbl-screenshot
Nov 25, 2026
Merged

elripalda merged 3 commits into
mainfrom
claude/project-thread-d49tbl-screenshot

Conversation

@elripalda

Copy link
Copy Markdown
Owner

Same change as #555, which was merged before review and taken out in #564. Up again for review.

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

Checklist

  • One change per pull request
  • Not a fix for one recomp's own quirks
  • No version bump or patch notes

Generated by Claude Code

elripalda and others added 3 commits November 25, 2026 08:22
…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: Ripalda <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
…the screen

Anything covering the window (another window, a notification) is in the picture too, so the tool's description and docs/TEST-CONTROL.md say so.
The screen was the one under the window's middle, so a window hanging off the bottom or the side, with its middle on no screen, failed with "Not found monitor". It's now the screen showing the most of the window.
@Xarishark Xarishark self-assigned this Nov 25, 2026

@Xarishark Xarishark left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

All notes resolved and CI passed. Approving.

@elripalda
elripalda merged commit 15b8c2f into main Nov 25, 2026
6 checks passed
@elripalda
elripalda deleted the claude/project-thread-d49tbl-screenshot branch November 25, 2026 15:28
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.

2 participants