Repository navigation
Conversation
- Fix collapse calculation to use the widest connected display instead of the currently focused screen - Raise the collapse width cap from 4,000 to 10,000 (macOS hard limit) - Keep the bar collapsed when displays are connected or disconnected - Fix collapsed state detection to be resilient to width recalculations Fixes consolelabs#314, fixes consolelabs#345, fixes consolelabs#353
|
Requesting review from @viettrungphan, @phucledien |
|
I'm having the same problem on a monitor with a resolution of 5120x1440. |
|
We need someone to review and merge please. |
|
I also have this issue, on a secondary monitor that is 2560x1440. |
- chore: bump deployment target to macOS 10.13 (Xcode 26 requirement) - fix: properly hide menu bar items on ultra-wide and multi-monitor setups (PR consolelabs#354, laveez) Closes upstream consolelabs#314, consolelabs#345, consolelabs#353.
Adds the non-overlapping pieces of huynguyenh's PR consolelabs#335 on top of rm335's PR consolelabs#346. Handles the biggest leak source (NSLayoutConstraint retention when NSImageViews were recreated 9-10 times per toggle). - Deactivate NSLayoutConstraints before removing views in NSStackView.removeAllSubViews (prevents constraint retention of removed NSImageViews — primary leak source on macOS Sequoia/Tahoe) - Extend StatusBarController.deinit to invalidate timer and remove the always-hidden NSStatusItem - Change toggleStatusBarIfNeeded to only create the always-hidden status item when it doesn't already exist, instead of tearing down and recreating on every .alwayHideToggle notification Combined with the widest-display collapse-length calc in consolelabs#354 and the bounded-length work in consolelabs#344, this should resolve the runaway memory growth reported in upstream consolelabs#326, consolelabs#336, consolelabs#351, consolelabs#352. Co-Authored-By: huynguyenh <hoanghuy2908@gmail.com> Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
- chore: bump deployment target to macOS 10.13 (Xcode 26 requirement) - fix: properly hide menu bar items on ultra-wide and multi-monitor setups (PR consolelabs#354, laveez) Closes upstream consolelabs#314, consolelabs#345, consolelabs#353.
Adds the non-overlapping pieces of huynguyenh's PR consolelabs#335 on top of rm335's PR consolelabs#346. Handles the biggest leak source (NSLayoutConstraint retention when NSImageViews were recreated 9-10 times per toggle). - Deactivate NSLayoutConstraints before removing views in NSStackView.removeAllSubViews (prevents constraint retention of removed NSImageViews — primary leak source on macOS Sequoia/Tahoe) - Extend StatusBarController.deinit to invalidate timer and remove the always-hidden NSStatusItem - Change toggleStatusBarIfNeeded to only create the always-hidden status item when it doesn't already exist, instead of tearing down and recreating on every .alwayHideToggle notification Combined with the widest-display collapse-length calc in consolelabs#354 and the bounded-length work in consolelabs#344, this should resolve the runaway memory growth reported in upstream consolelabs#326, consolelabs#336, consolelabs#351, consolelabs#352. Co-Authored-By: huynguyenh <hoanghuy2908@gmail.com>
|
Hello @tieubao I hope you all is well. May we please request for your help with merging this issue please. Thank you. Kind Regards, |
|
Yes please, we really need this to be merged to the main branch. Thank you. |
|
Hello @tieubao I hope you all is well. May we please request for your help with merging this issue please. Thank you. Kind Regards, |
Absorbs the still-relevant pieces of three community PRs that overlapped this branch, with authorship credit: - collapse length re-applies to the live separator when displays change, and isCollapsed compares > btnHiddenLength so the state survives the recompute; collapse sizing uses frame.width x2 capped at the documented 10,000pt NSStatusItem maximum (from #354) - NSLayoutConstraint.deactivate before removeFromSuperview in removeAllSubViews, plugging the tutorial-view rebuild leak (from #335) - PreferencesViewController balances its prefsChanged observer in deinit (from #335/#346) Co-authored-by: Laveez <niko.muukkonen1@gmail.com> Co-authored-by: huynguyenh <hoanghuy2908@gmail.com> Co-authored-by: Rob Mulder <hallo@robmulder.com>
|
Thanks for this: it caught two things the in-flight #363 branch had missed. We've absorbed your live length re-apply on display change, the |
Absorbs the still-relevant pieces of three community PRs that overlapped this branch, with authorship credit: - collapse length re-applies to the live separator when displays change, and isCollapsed compares > btnHiddenLength so the state survives the recompute; collapse sizing uses frame.width x2 capped at the documented 10,000pt NSStatusItem maximum (from #354) - NSLayoutConstraint.deactivate before removeFromSuperview in removeAllSubViews, plugging the tutorial-view rebuild leak (from #335) - PreferencesViewController balances its prefsChanged observer in deinit (from #335/#346) Co-authored-by: Laveez <niko.muukkonen1@gmail.com> Co-authored-by: huynguyenh <hoanghuy2908@gmail.com> Co-authored-by: Rob Mulder <hallo@robmulder.com>
Absorbs the still-relevant pieces of three community PRs that overlapped this branch, with authorship credit: - collapse length re-applies to the live separator when displays change, and isCollapsed compares > btnHiddenLength so the state survives the recompute; collapse sizing uses frame.width x2 capped at the documented 10,000pt NSStatusItem maximum (from #354) - NSLayoutConstraint.deactivate before removeFromSuperview in removeAllSubViews, plugging the tutorial-view rebuild leak (from #335) - PreferencesViewController balances its prefsChanged observer in deinit (from #335/#346) Co-authored-by: Laveez <niko.muukkonen1@gmail.com> Co-authored-by: huynguyenh <hoanghuy2908@gmail.com> Co-authored-by: Rob Mulder <hallo@robmulder.com>
* fix: size a runtime-enabled always-hidden separator at its resting width btnAlwaysHiddenLength was captured once at launch, so enabling the section from Preferences at runtime created its separator at 0pt, invisible until the next launch. Read the preference live instead. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> * refactor: isolate menu-bar hiding behind engine Move the separator-length mechanics out of StatusBarController into a MenuBarEngine, with the existing behavior preserved in LegacyLengthEngine. The controller keeps the status items, UI, preferences, timers and hover handling; the engine owns how hiding is achieved. MenuBarEngineFactory is the single place an engine is chosen, so an OS-specific mechanism (#360) can be added without version checks spreading through the controller. No intentional behavior change: - collapse state stays derived from the live separator length (> 20pt), so it still survives a length recompute while collapsed (PR #354) - the collapse length is still max(500, min(widest screen * 2, 10_000)) - the always-hidden separator is still inflated only by "hide separators", never by collapse, and is re-applied on a display change only when the bar was collapsed with separators hidden - the one-shot HideMechanism diagnostic log moves into the legacy engine unchanged Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> * docs: point architecture and backlog at the menu-bar engine Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
Problem
Since v1.10, hidden menu bar items reappear on ultra-wide monitors and multi-display setups. The collapse width is calculated from the currently focused screen rather than the widest one, so switching focus to a smaller display causes items to show through. Additionally, connecting or disconnecting a display resets the collapsed state.
Solution
Testing
Tested on MacBook Pro with external ultra-wide (3440x1440). Collapse/expand, display switching, display connect/disconnect, auto-hide, and always-hidden section all work correctly.
Related
Fixes #314, fixes #345, fixes #353. Supersedes #347.