Repository navigation
Test control: the window screenshot takes the launcher's part of the screen - #565
Merged
Merged
Conversation
…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
approved these changes
Nov 25, 2026
Xarishark
left a comment
Collaborator
There was a problem hiding this comment.
All notes resolved and CI passed. Approving.
1 task done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
screenshottool'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_controlpasses (34, 4 new for the clipping)cargo check --target x86_64-pc-windows-gnuis cleanChecklist
Generated by Claude Code