Repository navigation
fix: keep the menu bar reveal delay working on macOS 27 - #368
Merged
Merged
Conversation
macOS 27 reveals the hidden menu bar from anywhere within 4 points of the top edge. The delay held the pointer at exactly 4 points, so macOS showed the menu bar after its own short wait. Hold it 6 points down. Closes #367
|
🎉 This PR is included in version 0.9.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
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.
Problem
On macOS 27, Reveal delay (
bar.menuBarRevealDelay) no longer holds the menu bar back: it appears 75–380 ms after the pointer reaches the top edge, whatever the delay. Fixes #367.macOS 27's new MenuBarAgent reveals the hidden menu bar from anywhere within 4 points of the top edge, and tracks the pointer down to 5 points. StableBar held the pointer at exactly 4 points, inside that band, so macOS ran its own short wait while StableBar was still holding.
Changes
MenuBarHoverholds the pointer 6 points below the top edge (MenuBarHover.holdDepth) instead of 4, and starts the wait from that same line. Once the delay ends, StableBar still moves the pointer to the edge, and macOS then reveals the menu bar as before.No configuration, schema or Settings changes.
Testing
swift test --filter menuBarDelay: 5 tests (8 cases) pass. The existing delay tests now expect the 6-point hold. A new test checks that pointers at 4 and 5 points are held at 6, and that one at 7 passes./usr/bin/log show --predicate 'process == "MenuBarAgent"'on macOS 27.2:tracking scope roi mode=autoHide reporting=[((0.0, -4.0), (width: 2560.0, height: 8.0))] detection=[((-1.0, -5.0), (width: 2562.0, height: 10.0))]. A pointer held at y = 4.0 startedreveal dwell, while one that moved down to y ≈ 5.1–9.8 ended the dwell without a reveal.Merging
One fix commit. Squash merge with the title is fine.
Claude Opus 5.5 via Claude Code.