Skip to content

Honor macOS title bar double-click setting - #76

Open
klopez4212 wants to merge 1 commit into
mainfrom
kennylopez-macos-titlebar-double-click
Open

klopez4212 wants to merge 1 commit into
mainfrom
kennylopez-macos-titlebar-double-click

Conversation

@klopez4212

Copy link
Copy Markdown
Contributor

Summary

  • follow the macOS title-bar double-click setting
  • preserve dragging and non-macOS behavior
  • cover pointer and native preference handling

Validation

  • focused TypeScript and Rust tests
  • build, design browser checks, Clippy
  • full scan: 389/390 browser journeys; the lone WebKit notification timeout reproduces on untouched origin/main
  • native tests: 12/13; the terminal environment test is blocked by the machine ClickFix acknowledgement prompt
  • staged native app on the Builderlab relay

Signed-off-by: klopez4212 <klopez4212@gmail.com>
@klopez4212
klopez4212 requested review from a team, comp615 and wesbillman as code owners September 15, 2026 17:07
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 15, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-15T17:12:04.214925Z 74c120c PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 74c120cf0c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@@ -0,0 +1,64 @@
import type { MouseEventHandler } from "react";

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Add the required Signed-off-by trailer

The reviewed commit has no Signed-off-by trailer, so it violates the repository's DCO requirement and will fail the hosted DCO Check. Ensure this commit carries the verified author's sign-off while preserving its actual authorship before integration.

AGENTS.md reference: AGENTS.md:L123-L126

Useful? React with 👍 / 👎.

Comment on lines +45 to +46
start?.x !== event.clientX ||
start.y !== event.clientY

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Allow normal pointer slop on the second click

When the pointer moves by even one CSS pixel between the second mouse-down and mouse-up, these exact coordinate comparisons suppress the configured title-bar action even though event.detail === 2 shows that the platform accepted the interaction as a double-click. Normal hand jitter therefore makes Fill/Zoom or Minimize unreliable; use a small drag threshold or native double-click detection rather than requiring perfectly stationary coordinates.

Useful? React with 👍 / 👎.

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