Skip to content

Clicking a widget doesn't open its popup while its hover slider shows #660

Closed

Description

@M4n0x

What happens

A widget with hover controls (a hoverLayout slider, like the Sound widget's volume) and a popup: once the slider shows under it, clicking the widget no longer opens the popup. Nothing happens, except that the slider stays open.

The same applies to the other tooltip-style windows that take the pointer: the More widgets tray (⋯) and the Menu bar items row. Clicks on the bar under their window go to the window, so clicking ⋯ again keeps the tray open instead of closing it.

Steps to reproduce

  1. Keep the bar at the top and use a theme with a large popup shadow, such as Fern 1.1.0, or:
    {
      "popupDefaults": { "shadowColor": "#00000080", "shadowRadius": 24 },
      "widgets": [{
        "id": "sound", "type": "script", "command": "…", "position": "right",
        "hoverLayout": { "type": "slider", "source": "volume", "onChange": "…" },
        "popup": { "layout": { "type": "text", "text": "Sound" } }
      }]
    }
  2. Hover the widget until the slider shows.
  3. Click the widget.

Expected

The popup opens, as it does before the slider shows.

Environment

  • StableBar 0.16.0-beta (1074)
  • macOS 27.2
  • Fern 1.1.0 theme (popupDefaults.shadowRadius: 24), bar at the top

Evidence

  • A tooltip's window starts shadowRadius × 2 + 2 points outside its visible box, to leave room for the shadow. With a shadow radius of 24 that margin is 50 pt, so the window's top sits 44 pt above the bar's bottom edge, over the widget.

  • macOS passes clicks through the transparent parts of a non-opaque window only while ignoresMouseEvents has never been set. Set to false, the window takes every click in its frame. A standalone check with NSWindow.windowNumber(at:belowWindowWithWindowNumber:) and the window server's own lookup, at a point in the transparent margin over another window:

    ignoresMouseEvents click in the margin goes to
    never set the window below
    false the transparent window
    true the window below

Diagnosis

WidgetPopup.openTooltip in Sources/StableBar/WidgetPopup.swift sets panel.ignoresMouseEvents = ignoresMouseEvents, which is false for showControls (hover controls), showRow (Menu bar items) and showWidgets (More widgets). Popups from open() never set it, so their margin lets clicks through to the bar.

#647 (for #643) keeps popup windows where they're placed, also inside the menu bar strip. On a notched display AppKit used to move these windows down out of the strip, below the bar, which kept the margin off the widget. On a display whose visible frame reaches its top, AppKit never moved them, so the margin covered the widget there before #647 too (from the code, not tried).

Related

Triaged by Claude Code (Claude Opus 5.5).

Activity

  1. added
    bug
    on Nov 14, 2026
  2. stablebar-releases commented on Nov 16, 2026

    @stablebar-releases

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

    bugreleased

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions