Skip to content

feat(macos27): per-app Ignore drags flag for pinned sections - #487

Merged
tieubao merged 3 commits into
developfrom
feat/ignore-drags-flag
Nov 15, 2026
Merged

tieubao merged 3 commits into
developfrom
feat/ignore-drags-flag

Conversation

@tieubao

@tieubao tieubao commented Nov 15, 2026

Copy link
Copy Markdown
Contributor

Part of #107.

What

  • Per-app "Ignore drags" flag (macOS 27 direct build, pinned sections beta). Apps that recreate their status item without relaunching (BitBar, SwiftBar) read as dragged; with the flag on, the resolver keeps the app's pinned section and ignores observed position changes. The Menu Bar Apps popup still edits the section.
  • Stored as a bundle list under pinnedDragLocks, next to the pinnedSections table. Checkbox in each Menu Bar Apps row. New strings are English in every locale, like the other pinned-sections strings.
  • Docs (separate commit): ARCHITECTURE no longer says the factory always picks LegacyLengthEngine; MANUAL describes new icons on 27 direct vs legacy; BACKLOG marks Epic: managed-overflow / second-bar redesign (modern menu-bar hiding) #366 decided (option B) and lists what remains.

Test

scripts/test.sh: Direct 288 passed, App Store 213 passed, 0 failed.
Negative control: with the !ignoringDrags.contains(bundle) guard removed, testResolverKeepsTheSectionOfAnAppIgnoringDrags and testAnAppIgnoringDragsKeepsItsSectionWhenItsIconMoves fail; restored, green. UI not run on screen.

Not covered: the App Store migration whitelist does not carry pinnedDragLocks (the native engine is direct-only).

tieubao and others added 3 commits November 16, 2026 00:55
Apps that recreate their status item without relaunching (BitBar, SwiftBar) read as dragged, so the pinned-sections resolver let them drift into the hidden section. A bundle with Ignore drags on keeps its pinned section and ignores observed position changes. The flag is a bundle list under its own defaults key, set from a checkbox in each Menu Bar Apps row; the section popup still edits the table. Part of #107.
ARCHITECTURE no longer says the factory always picks LegacyLengthEngine, MANUAL describes new icons on macOS 27 direct versus legacy, BACKLOG marks the epic decided (option B) and lists what remains.
@tieubao
tieubao merged commit 87dba1c into develop Nov 15, 2026
3 checks passed
@tieubao
tieubao deleted the feat/ignore-drags-flag branch November 15, 2026 18:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant