Skip to content

Clicks on the top of the bar show the menu bar when a full-screen Screenshot window sits at the menu bar level #728

Closed

Description

@alexandrebucci

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

  1. macOS 27, notched built-in display, menu bar set to hide automatically, StableBar bar at the top.
  2. 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.
  3. 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: kCGSDisplayDidReconfigure2 received 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

Filed with StableBar triage by Claude Opus 5.5 via Claude Code.

Activity

  1. added
    needs-triage
    on Nov 16, 2026
  2. stablebar-releases commented on Nov 16, 2026

    @stablebar-releases

    🎉 This issue has been resolved in version 0.17.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

    needs-triagereleased

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions