Repository navigation
Description
What happens
On a notched display with the macOS menu bar hidden, only the bottom few points of the bar take clicks. Clicking anywhere in the top 33 pt of the 40 pt bar shows the native macOS menu bar instead of acting on the widget.
It started after disconnecting an external display, and it is still there after StableBar quit and reopened (including after updating to the build below).
The window list at the top of the built-in display:
| Owner | Layer | Bounds |
|---|---|---|
| MenuBarAgent (reveal strip) | 25 | 0,0 1512×33 |
| screencaptureui ("Screenshot", on screen, alpha 1) | 24 | 0,0 1512×982 |
| StableBar bar | 3 (.floating) |
0,0 1512×40 |
The bar should be at .aboveMenuBarStrip (26) but stays at .floating, under the strip.
MenuBarStripState (Sources/StableBar/MenuBarStrip.swift:30) counts any window at the main menu level that spans the display's width and touches its top as a shown menu bar:
if layer == menuBarLevel, bounds.maxY > display.minY + 1 { shownMenuBars.insert(id) }The full-screen screencaptureui window at layer 24 matches, so raisesBar(on:) returns false and the bar is never raised above the strip. The real menu bar window (owner Window Server, layer 24) is at y = -33 while hidden, so it does not match.
Steps to reproduce
- macOS 27, notched built-in display, menu bar set to hide automatically, StableBar bar at the top.
- Have a screencaptureui window on screen at layer 24 covering the display. Here it was left over after disconnecting an external display; screencaptureui had been running since earlier in the day. Opening the Screenshot toolbar (⌘⇧5) probably gives the same window.
- Click the upper part of a widget on the bar.
The macOS menu bar appears and the widget gets no click. Clicks in the bottom ~7 pt still work.
I could not confirm that disconnecting the display is what creates the screencaptureui window; it was there when I checked. Opening and closing the Screenshot toolbar (⌘⇧5, Esc) and making a screen recording did not remove it.
Ending the screencaptureui process removed the window, and within a couple of seconds StableBar raised the bar to layer 26 (above the strip), so the false menu bar detection is the cause.
Expected
Clicks anywhere on the bar reach its widgets, as fixed for the reveal strip in #366/#369 and after locking in #374/#375. Only an actually visible menu bar should keep the bar below it, for example by requiring the layer-24 window to be about the menu bar's height, or to be owned by Window Server.
Environment
StableBar: 0.17.0-beta.20261116131343.1164 (Beta, build 1164)
macOS: 27.2.0 (26B123), arm64, Mac16,8 (M4 Pro)
Displays: built-in Retina 1512×982 pt @2x with notch (external display had just been disconnected)
AeroSpace: 0.21.3-Beta
Evidence
bar.hideMenuBar: false,bar.height: 40; macOS menu bar auto-hide on (_HIHideMenuBar = 1).- System log:
kCGSDisplayDidReconfigure2received by StableBar at the display disconnect; no StableBar crash reports. - The same detection code is unchanged on
main. - A screen recording shows the native menu bar appearing when clicking near the top of widgets (to be attached in a comment).
Related
- Clicks on the bar show the macOS menu bar on notched displays in macOS 27 #366 / fix: keep clicks on the bar from showing the menu bar on macOS 27 #369: clicks on the bar show the menu bar on notched displays in macOS 27 (added the strip detection).
- After the screen locks, clicks on the bar on a notched display show the menu bar again on macOS 27 #374 / fix: put the bar back above the menu bar strip after the screen locks #375: the same after the screen locks.
- This one is a false "menu bar shown" detection caused by a non-menu-bar window at the menu bar's level.
Filed with StableBar triage by Claude Opus 5.5 via Claude Code.
Activity
chore(release): 0.17.0 [skip ci]
stablebar-releases commentedon Nov 16, 2026
🎉 This issue has been resolved in version 0.17.0 🎉
The release is available on GitHub release
Your semantic-release bot 📦🚀