feat(window): accept first mouse click on frameless windows on macOS - #68
Merged
Conversation
Sets acceptFirstMouse on the main window so the first click on an inactive window reaches the custom titlebar controls instead of only focusing it, matching native macOS titlebar behavior. Applies the same treatment to the always-on-top float capsule window so a single click opens the main window even when PickGauge is not the frontmost app. Refs pickforge/pickforge-platform#8
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
Sets
acceptFirstMouse: trueon the main window intauri.conf.jsonso the first click on an inactive frameless window reaches the custom titlebar controls instead of only focusing it (matches native macOS titlebar behavior). Applies the same flag to the always-on-top float capsule window (ensure_float_windowinsrc-tauri/src/lib.rs): its whole purpose is a single click to open the main window, so first-click pass-through matters there too, not just on the titlebar.The owner verified the desired feel on macOS hardware: first click on an inactive frameless window must act, not just focus.
Validation
bun install && bun run check— 220 files, 0 errors, 0 warnings.bun run build— frontend build succeeds.cargo check --manifest-path src-tauri/Cargo.toml --locked— clean.Refs pickforge/pickforge-platform#8
🤖 Generated with Claude Code