Skip to content

Keep the clock still when right click cycles its format - #16603

Merged
dhh merged 2 commits into
quattrofrom
clock-right-click-still
Oct 27, 2026
Merged

dhh merged 2 commits into
quattrofrom
clock-right-click-still

Conversation

@omarchybot

@omarchybot omarchybot commented Oct 25, 2026 •

Copy link
Copy Markdown
Collaborator

Right-clicking the clock to cycle its format set off the bar's press animation from #16503. The label shrank to 0.9 and sprang back, and because the click swaps in the next format, the new text was what shrank as it landed. The press feedback answered every mouse button, and a click that replaces the label is feedback enough on its own.

  • WidgetButton gets pressFeedbackButtons, the buttons its mark gives under. It defaults to left, right and middle, so every other widget behaves as before.
  • The clock sets it to left and middle. Opening the calendar and the timezone picker still give; cycling the format doesn't.
  • held becomes heldButtons. The bar's drag handler and an open panel's overlay take the press before the widget sees it, so they now say which buttons hold it, and the mask applies however the press arrives. The overlay passes every button still down, so pressing or releasing a second button mid-hold leaves the first one's feedback alone.

Reviewed by Codex at medium effort, which found the chorded-press case above; nothing else.

🤖 Generated by Opus 5.5 in Claude Code. Reviewed by Codex Medium.

The bar's press feedback shrank the label for every mouse button, so a right click on the clock scaled the next format down as it landed and sprang it back. A widget can now say which buttons its mark gives under, and the clock leaves out right click, whose new label is feedback enough. The bar's press handler and an open panel's overlay report which button holds the widget, so the choice holds whichever of them takes the press.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@greptile-apps

greptile-apps Bot commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no actionable issues were found.

Summary

Keeps the clock still when right-clicking changes its format.

  • The clock changes format without shrinking its new label.

The latest revision only changes how the open panel tracks held buttons. No new actionable issues were found.

Reviews (2) · Last reviewed commit: "Hold every button still down through an ..." · Reviewed by Greptile

The overlay told the widget only the button just pressed, so pressing right while left held the clock replaced the mask with right alone and the label sprang back while left was still down; releasing one of two buttons cleared the hold entirely. It now passes the full set of buttons down on press and keeps the hold while any remains on release. The bar's own press handler accepts only the left button, so it cannot chord.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Codex Medium <noreply@openai.com>
@dhh
dhh merged commit 6cc767f into quattro Oct 27, 2026
2 checks passed
@dhh
dhh deleted the clock-right-click-still branch October 27, 2026 11:48
localrobot pushed a commit to localrobot/omarchy that referenced this pull request Nov 1, 2026
* Keep the clock still when right click cycles its format

The bar's press feedback shrank the label for every mouse button, so a right click on the clock scaled the next format down as it landed and sprang it back. A widget can now say which buttons its mark gives under, and the clock leaves out right click, whose new label is feedback enough. The bar's press handler and an open panel's overlay report which button holds the widget, so the choice holds whichever of them takes the press.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Hold every button still down through an open panel's overlay

The overlay told the widget only the button just pressed, so pressing right while left held the clock replaced the mask with right alone and the label sprang back while left was still down; releasing one of two buttons cleared the hold entirely. It now passes the full set of buttons down on press and keeps the hold while any remains on release. The bar's own press handler accepts only the left button, so it cannot chord.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Codex Medium <noreply@openai.com>

---------

Co-authored-by: David Heinemeier Hansson <david@hey.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Codex Medium <noreply@openai.com>
(cherry picked from commit 6cc767f)
@emirb emirb added this to the 4.5 milestone Nov 5, 2026
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.

3 participants