Skip to content

Right-clicking a menu bar item on the bar doesn't offer Edit Widget… #662

Closed

Description

@M4n0x

What happens

Right-clicking an item that a Menu bar items widget shows on the bar, such as an app's item, opens a menu with only Move Left, Move Right, Move to Row and Hide. Edit Widget… and the bar's own commands (Edit Bar in Place, Try Themes…, Settings…, Quit StableBar) are missing. The widget's grid symbol does the same while items are shown beside it. A widget that shows only items, without its grid symbol, can't be opened from the bar with a right-click at all.

Steps to reproduce

  1. Put an app's menu bar item on the bar: Settings → Bar → Menu bar items → Content → drag it into On the bar.
  2. Right-click that item on the bar, then right-click the grid symbol.

Expected

The item's commands, followed by Edit Widget… and the bar's menu, as on every other widget.

Update, 2026-11-15: the agreed behavior differs. A right-click on an app's item on the bar does what a click does: it opens the item's menu or panel, as in the macOS menu bar. Only the grid symbol keeps StableBar's menu: its commands, then Edit Widget… and the bar's menu. A widget that leaves the grid symbol out is edited from Settings → Bar.

Environment

StableBar 0.16.0-beta (also on main 8c78bd4), macOS 27.2.1, laptop and an external display.

Diagnosis

Sources/StableBar/BarView.swift: MenuBarItemsView gives each cell its own .contextMenu with MenuBarItemCommands. SwiftUI opens only the innermost context menu under the pointer, so a cell's menu replaces the widget's .contextMenu in WidgetView (Edit Widget… and BarContextMenu) instead of adding to it. Probed with nested .contextMenus: NSHostingView.menu(for:) and a right-click both give only the inner menu.

A right-click doesn't press the item: with the right button number the cell's mouse-down button doesn't fire.

Related

Triaged by Claude Code (Claude Opus 5.5).

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