Skip to content

feat(window): accept first mouse click on frameless windows on macOS - #68

Merged
ElbertePlinio merged 1 commit into
mainfrom
feat/8-accept-first-mouse
Jul 23, 2026
Merged

feat(window): accept first mouse click on frameless windows on macOS#68
ElbertePlinio merged 1 commit into
mainfrom
feat/8-accept-first-mouse

Conversation

@ElbertePlinio

Copy link
Copy Markdown
Member

What changed

Sets acceptFirstMouse: true on the main window in tauri.conf.json so 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_window in src-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

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
@ElbertePlinio
ElbertePlinio merged commit 89b2451 into main Jul 23, 2026
1 check passed
@ElbertePlinio
ElbertePlinio deleted the feat/8-accept-first-mouse branch July 23, 2026 18:20
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