Repository navigation
Description
What happens
On a MacBook's built-in display (with a notch) and the macOS menu bar set to hide automatically, right-clicking an item that a Menu bar items widget shows on the bar (the #760/#761 right-click) doesn't right-click the item. MeetingBar, for example, doesn't join the next meeting. Meanwhile the pointer jumps to the menu bar and back several times. A click still works.
The same setup worked on an external display without a notch.
Steps to reproduce
- On macOS 27, with a notched built-in display as the only display, set Automatically hide and show the menu bar to Always.
- Show an app's item on the bar with a Menu bar items widget, such as
{ "app": "leits.MeetingBar" }inshown. - Right-click the item on the bar.
Expected
The app gets a right-click on its item, and the pointer stays where it is, as on an external display.
Environment
- StableBar 0.18.0-beta.20261117073519.1244
- macOS 27.2.1 (26B131)
- MacBook Pro, built-in Liquid Retina XDR display, 1512 × 982 points, with a notch; no other display
- Menu bar: hide automatically, always (
_HIHideMenuBar= 1) - Workspaces from OmniWM
Evidence
Measured on that Mac, without touching the pointer where possible:
- While the menu bar hides automatically, MenuBarAgent keeps an invisible window over the menu bar's area (level 25, the strip
MenuBarStripStatealready handles, see Clicks on the bar show the macOS menu bar on notched displays in macOS 27 #366). It stays above the menu bar (level 24) for the whole of aSLSSetMenuBarVisibilityOverrideOnDisplayreveal. - StableBar's probe, the release of button 20 that reads the menu bar's context, lands on that strip, with event field 146 = 0. Even with the strip out of the way, 12 probes on the uncovered menu bar (HID and session taps, on the battery, MeetingBar and empty space) all carried field 146 = 0, so on this display there is no context number to read.
Diagnosis
AppMenu.rightClickInMenuBar → menuBarContext(on:around:) → readMenuBarContextNumber in Sources/StableBar/AppMenu.swift posts the probe through the HID tap, which moves the pointer to the item and back, up to 10 times, then gives up and presses the item through Accessibility, which apps take as a left click.
A click posted to MenuBarAgent that names, in event field 51, one of MenuBarAgent's own off-screen windows at the menu bar's level (bounds = the display's menu bar) reaches the item instead, as a real rightMouseUp. The menu bar can be hidden or revealed, and the pointer isn't touched. Measured with a stand-in status item, on this display and on a 3440 × 1440 external display. A fix along these lines will follow.
Related
- Right-click a menu bar item on the bar as a right-click, not as a click #760, feat: right-click a menu bar item on the bar as in the macOS menu bar #761: the right-click this breaks on a notched display.
- Make right-clicking menu bar items as in the macOS menu bar opt-in and experimental #767, feat: make right-clicking menu bar items as in the menu bar opt-in and experimental #768: make that right-click opt-in and experimental; this bug applies either way.
- Clicks on the bar show the macOS menu bar on notched displays in macOS 27 #366: the strip over a hidden menu bar on a notched display.
Triaged by Claude Code (claude-opus-5-5).
Activity
fix: right-click a menu bar item on a notched display without moving …
influxodoxxl commentedon Nov 17, 2026
I'm on StableBar 0.18.0-beta.20261117211956.1317
Right click opens up the left click menu but only after the cursors jumps to the left and after 1-2 seconds. Left clicks is snappier.
Jonathanm10 commentedon Nov 18, 2026
Note
🤖 Claude Opus 5.5 responding on behalf of Jonathanm10
That's this bug: your build still has the old right-click, which moves the pointer to the menu bar up to 10 times to read a value it can't get, then falls back to pressing the item, which apps take as a left click. Hence the jump, the 1–2 s delay and the left-click menu.
The fix is #774, not merged yet, so it isn't in 0.18.0-beta.20261117211956.1317. It posts the right-click without moving the pointer.
To confirm it covers your setup, could you share:
chore(release): 0.18.0 [skip ci]
stablebar-releases commentedon Nov 20, 2026
🎉 This issue has been resolved in version 0.18.0 🎉
The release is available on GitHub release
Your semantic-release bot 📦🚀