Repository navigation
fix: put the bar back above the menu bar strip after the screen locks - #375
Merged
Merged
Conversation
On macOS 27, a check that ran while MenuBarAgent's strip was away, such as during the lock screen's animation, lowered the bar and stopped the timer. The strip came back over the bar, which then got no mouse events, so clicks showed the menu bar until something else made the bar check again. The two-second check now keeps running while a bar sits on a display with a notch, so the bar is back above the strip within two seconds. Fixes #374
|
🎉 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, with the menu bar hiding automatically, the bar on a display with a notch can stay below MenuBarAgent's invisible strip after the screen locks and unlocks. Clicks on it then show the macOS menu bar again, as before #366. Fixes #374.
MenuBarStrip(from #369) set no timer once a check found no strip. During the lock screen's animation, MenuBarAgent's level-25 window shrinks away from the display's top for about 0.3 s. A check in that window lowered the bar and stopped the timer. The strip then came back over the bar, which got no mouse-entered events, so nothing checked again. Sleep stops the timer too, so the first check after a wake could do the same.Changes
MenuBarStripState.checkIntervaldecides how often to read the window list. It is the old rule plus one case: every two seconds while a bar sits on a display with a notch, even when no strip shows. A read costs about 1 ms.MenuBarStripnotes which of its bars are on a display with a notch (auxiliaryTopLeftArea) each time the bars update.Testing
swift test --filter "menuBarStrip|menuBarDelay|BarDecoration|BarEditControls|PopupClick": 14 tests pass. The newmenuBarStripKeepsCheckingABarOnANotchedDisplayBeforeTheStripShowsfailed before the change: no interval for a notched display without a strip.Merging
One fix commit; a squash with the title is fine.
Claude Opus 5.5 via Claude Code.