Skip to content

Right-clicking a menu bar item on the bar does nothing on a notched display whose menu bar hides, and the pointer jumps #771

Closed

Description

@Jonathanm10

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

  1. On macOS 27, with a notched built-in display as the only display, set Automatically hide and show the menu bar to Always.
  2. Show an app's item on the bar with a Menu bar items widget, such as { "app": "leits.MeetingBar" } in shown.
  3. 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 MenuBarStripState already 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 a SLSSetMenuBarVisibilityOverrideOnDisplay reveal.
  • 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

Triaged by Claude Code (claude-opus-5-5).

Activity

  1. added
    needs-triage
    on Nov 17, 2026
  2. added a commit that references this issue on Nov 17, 2026
    36a5399
  3. influxodoxxl commented on Nov 17, 2026

    @influxodoxxl

    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.

  4. Jonathanm10 commented on Nov 18, 2026

    @Jonathanm10
    ContributorAuthor

    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:

    1. Your display: a MacBook's built-in display with a notch, or an external one?
    2. Your Automatically hide and show the menu bar setting in System Settings?
  5. stablebar-releases commented on Nov 20, 2026

    @stablebar-releases

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