Repository navigation
Description
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
- 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" } } }] } - Hover the widget until the slider shows.
- 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 + 2points 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
ignoresMouseEventshas never been set. Set tofalse, the window takes every click in its frame. A standalone check withNSWindow.windowNumber(at:belowWindowWithWindowNumber:)and the window server's own lookup, at a point in the transparent margin over another window:ignoresMouseEventsclick in the margin goes to never set the window below falsethe transparent window truethe 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
- Popups open far below the bar on a notched display when their shadow is large #643 / fix: keep popups under the bar when their shadow reaches into the menu bar #647: popups kept in the menu bar strip, which made this show on notched displays.
- Show hover controls in a standard, animated tooltip instead of widening the widget #287 / feat: show hover controls in an animated tooltip instead of widening the widget #292: hover controls in a tooltip, which takes the pointer.
Triaged by Claude Code (Claude Opus 5.5).
Activity
chore(release): 0.16.0 [skip ci]
stablebar-releases commentedon Nov 16, 2026
🎉 This issue has been resolved in version 0.16.0 🎉
The release is available on GitHub release
Your semantic-release bot 📦🚀