Repository navigation
Description
What happens
While editing the bar in place, right-click any widget and rest the pointer on Move To or Shows On. The submenu closes and reopens over and over, so it blinks and is hard to use. It happens on every widget of a screen that has its own widget layout (screens.<kind>.layout), whenever something on the edit bar changes, such as a CPU or memory value changing width or another workspace getting focus.
Steps to reproduce
-
Use a configuration that gives the screen kind its own layout and has a widget whose text changes width:
{ "widgets": [ { "id": "apple", "type": "appleMenu", "position": "left" }, { "id": "tick", "type": "script", "position": "center", "interval": 1, "command": "if [ $(( $(date +%s) % 2 )) = 0 ]; then echo short; else echo a-much-longer-text; fi" } ], "screens": { "monitor": { "layout": { "left": ["apple"], "center": ["tick"] } } } } -
Choose Edit Bar in Place, and on the external monitor right-click the Apple menu tile.
-
Rest the pointer on Move To.
Expected
The submenu stays open until the pointer leaves it, as it does on a screen without its own layout.
Environment
- StableBar 0.14.0-beta.20261111135953.922, and
mainat 09f1ab1 - macOS 27.2
- Built-in display with a notch, plus an external monitor with its own layout
- AeroSpace
Evidence
A dev build ran the configuration above with the pointer resting on Move To:
- The submenu's window closed and reopened three times in five seconds, each time right after the Apple tile redrew.
- Every tile redrew about three times a second. Without the
screenslayout, the tiles drew twice in total, and the submenu stayed open.
Diagnosis
BarEditTile(Sources/StableBar/BarEditView.swift) stores the wholeConfigurationthatBarEditViewhands it:store.configuration?.onScreen(ScreenKind(display)).- For a screen with its own layout,
Configuration.onScreen(_:)(Sources/StableBar/Configuration.swift) builds a newwidgetsarray on every call.Configurationisn'tEquatable, so SwiftUI counts each rebuilt one as a change. - Every update of the edit bar then redraws every tile. A redraw re-evaluates the tile's
.contextMenu, SwiftUI replaces the items of the open menu, and an open submenu closes. The next pointer move opens it again. - Without a screen layout,
onScreen(_:)keeps the samewidgetsarray, and the tiles don't redraw.
Related
None found. Issues and pull requests were searched in every state for submenu, blink, flicker, context menu, Move To and Shows On.
Triaged by Claude Code (Claude Opus 5.5).
Activity
chore(release): 0.14.0 [skip ci]
stablebar-releases commentedon Nov 12, 2026
🎉 This issue has been resolved in version 0.14.0 🎉
The release is available on GitHub release
Your semantic-release bot 📦🚀