Skip to content

Clicks on the bar show the macOS menu bar on notched displays in macOS 27 #366

Closed

Description

@M4n0x

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

  1. macOS 27.2 on a MacBook Pro with a notch, menu-bar auto-hide on, bar on the top edge (offset 0).
  2. 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.menuBarRevealDelay 500

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). CGWindowListCopyWindowInfo lists 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, then com.apple.ec.MenuBar.revealed payload=["shownBy": "stripTap"]. Hover reveals log shownBy: "mouseEdge" instead. Read them with /usr/bin/log show --predicate 'process == "MenuBarAgent"' (categories reveal and analytics).
  • 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

Triaged by Claude Code (Claude Opus 5.5).

Activity

  1. added
    bug
    on Oct 28, 2026
  2. stablebar-releases commented on Oct 29, 2026

    @stablebar-releases

    🎉 This issue has been resolved in version 0.9.0 🎉

    The release is available on GitHub release

    Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugreleased

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions