Repository navigation
fix(fullbar): wait for the pointer to leave a self-hiding menu bar before deactivating - #608
Open
DragonNameLeo wants to merge 1 commit into
Open
DragonNameLeo wants to merge 1 commit into
DragonNameLeo wants to merge 1 commit into
Conversation
…fore deactivating With "Make room for icons while they are shown" on and the macOS menu bar set to hide by itself, a click on the arrow to collapse handed focus back to the previous app while the pointer was still in the bar. macOS then started hiding the menu bar and brought it straight back down. The collapse now keeps Hidden Bar active until the pointer leaves the bar (at most 10 s), where the bar hides anyway. A bar that stays on screen deactivates at once, as before. An expand, a failed collapse or a toggle of the option cancels the wait. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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 and why
This happens when "Make room for icons while they are shown" is on and the macOS menu bar is set to hide by itself. A click on the arrow to collapse hands focus back to the previous app while the pointer is still in the bar. macOS then starts hiding the menu bar (it slides up) and brings it straight back down. It happens on most collapses.
After this change, the collapse keeps Hidden Bar active until the pointer leaves the bar, for at most 10 s. Once the pointer has left, the bar hides anyway, so the app switch is not seen.
visibleFramereaches its top.FullBarActivation.waitsBeforeDeactivating(pointer:screens:barHeight:).How it was tested
FullBarDeactivationTests(7). They cover a self-hiding bar and a reserved bar, the very top row, the pointer below the bar, two screens, a taller notch bar, and no screen.scripts/test.sh --scheme direct: 833 passed, 34 failed. The same 34 fail ondevelopwithout this change. They are UI text tests, and they fail because the test Mac is set to Japanese.UI proof
The only change is when focus returns to the previous app. No setting, text, menu or arrow changes.
Tick exactly one:
🤖 Generated with Claude Code