Repository navigation
Description
What happens
On macOS 27, with Automatically hide the menu bar on and the bar on the top edge, clicking StableBar on a MacBook's built-in display (the one with the notch) slides in the macOS menu bar. The click never reaches the widget. Hovering still works. On an external display without a notch, clicks work as before.
Steps to reproduce
- macOS 27.2 on a MacBook Pro with a notch, menu-bar auto-hide on, bar on the top edge (offset 0).
- Click any part of the bar on the built-in display: a workspace, App menus, a provider widget or an empty spot.
Expected
The click goes to the widget and the macOS menu bar stays hidden, as on displays without a notch.
Environment
- StableBar 0.9.0-beta.20261028072222.447
- macOS 27.2 (26B123)
- MacBook Pro built-in display (1800×1169 pt, notch, 38 pt safe area) and a Dell U2715H as the main display
- AeroSpace;
bar.menuBarRevealDelay500
Evidence
- macOS 27 moved the menu bar's reveal into a new system process,
/System/Library/CoreServices/MenuBarAgent.app. In auto-hide mode it covers the menu-bar strip of a notched display with an invisible window at window level 25 (1800×39 pt on the built-in display).CGWindowListCopyWindowInfolists it above StableBar's bar panel (level 3). The external display has no such window. - MenuBarAgent logs each of these clicks as a reveal by tapping that strip:
space 6: menu bar revealed, thencom.apple.ec.MenuBar.revealed payload=["shownBy": "stripTap"]. Hover reveals logshownBy: "mouseEdge"instead. Read them with/usr/bin/log show --predicate 'process == "MenuBarAgent"'(categoriesrevealandanalytics). - Two throwaway borderless, nonactivating panels placed in the strip on the built-in display: the one at level 3 never received
mouseDown, and MenuBarAgent revealed the menu bar (stripTap). The one at level 26 received both clicks, and the menu bar stayed hidden. - A position recorder showed the menu bar sliding in 0.1–0.2 s after each mouse-up, with the pointer still, 11–25 pt below the top edge. A click at the same height on the external display did nothing.
Diagnosis
AppDelegate.updatePanels in Sources/StableBar/StableBarApp.swift gives every bar panel .floating (level 3). On macOS 27 that is below MenuBarAgent's strip, so on a notched display the strip takes the bar's clicks.
Raising the bar above level 25 fixes the clicks, but the macOS menu bar itself draws at level 24 (kCGMainMenuWindowLevel). A menu bar revealed on purpose from the top edge would then slide in behind the bar.
Proposal
On a display that has the strip, keep the bar above it while the macOS menu bar is hidden, and drop the bar back to .floating while macOS shows the menu bar, so a reveal from the top edge still appears above the bar. The bar's popups and edit controls follow its level.
Related
- Delay revealing the hidden macOS menu bar #201 (PR feat: add a delay before the native menu bar appears #202) added the reveal delay and Keep the macOS menu bar hidden while StableBar runs #310 added Always hide. Neither is about clicks.
- The menu bar reveal delay no longer holds the menu bar back on macOS 27 #367 is the reveal delay's own macOS 27 problem.
- Searched issues and pull requests in every state for macOS 27, MenuBarAgent, notch, reveal, auto-hide, native menu bar and click. Nothing matches.
Triaged by Claude Code (Claude Opus 5.5).
Activity
chore(release): 0.9.0 [skip ci]
stablebar-releases commentedon Oct 29, 2026
🎉 This issue has been resolved in version 0.9.0 🎉
The release is available on GitHub release
Your semantic-release bot 📦🚀