Repository navigation
feat: hover-to-select windows in the All-in-One overlay - #409
Merged
Merged
Conversation
All-in-One needed a detour through the separate Window mode: the Window button dismissed the frozen overlay, re-enumerated windows and re-froze the screen before a window could be picked. The first overlay now hit-tests windows itself: - area mode resolves the window under the pointer and draws the same rounded highlight and title label as Window mode; - a click without meaningful movement snaps the selection to that window and reuses the existing onAreaSelected path, so presets, annotation, OCR, copy, save and pin keep working unchanged; - a drag past 3 pt keeps freeform selection. CaptureCoordinator feeds the candidates once the overlay is on screen so the freeze and first frame stay instant, and filters out Capso's own capture chrome (freeze backdrops, overlays, Quick Access) by window number so hover never hits our full-screen freeze window.
lzhgus
approved these changes
Nov 21, 2026
lzhgus
left a comment
Owner
There was a problem hiding this comment.
Thanks for this — tested locally in a Debug build: hover highlight, click-to-snap, drag-still-freeform, and clipping at the display edge all behave as described. Merging once CI is green.
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.
What changed
All-in-One required a detour through the separate Window mode: the HUD's Window button dismissed the frozen overlay, re-enumerated windows and re-froze the screen before a window could be picked.
The first overlay now does the hit testing itself:
highlightWindow/screenRectToViewRect).onAreaSelectedpath, so presets, annotation, OCR, copy, save and pin keep working unchanged.attachWindowSnapCandidatesenumeratesSCShareableContentafter the overlays are on screen, so the freeze and the first frame stay instant, then pushes the candidates to every display overlay. Capso's own capture chrome (freeze backdrops, capture overlays, Quick Access cards) is filtered out by window number — otherwise every hover would hit our own full-screen freeze window.No new user-facing strings, no
project.ymlchange, no new files.Related issue
N/A — small feature. Happy to gate it behind a setting or to open an issue first if you'd prefer that flow.
Screenshots / recordings
No media: this is pointer behavior (hover highlight + click), nothing to show in a static shot. Verified with a local Debug build and manual testing: hover highlight, click-snap into the HUD, drag still freeform, second display.
On tests:
WindowInfocan only be constructed from anSCWindow, so the snap path has no seam for a unit test today. I can add a memberwise initializer plus overlay interaction tests in a follow-up if you want that covered.Checklist
xcodegen generatenot needed (no source layout change)xcodebuild -project Capso.xcodeproj -scheme Capso -configuration Debug build)TODO/FIXME/ debug printsSendableboundaries; the enumeration stays on@MainActor)