fix: properly hide menu bar items on ultra-wide and multi-monitor setups#354
Open
laveez wants to merge 1 commit intodwarvesf:developfrom
Open
fix: properly hide menu bar items on ultra-wide and multi-monitor setups#354laveez wants to merge 1 commit intodwarvesf:developfrom
laveez wants to merge 1 commit intodwarvesf:developfrom
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 dwarvesf#314, fixes dwarvesf#345, fixes dwarvesf#353
Author
|
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. |
sdenike
added a commit
to sdenike/hidden-revived
that referenced
this pull request
Apr 23, 2026
- 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 dwarvesf#354, laveez) Closes upstream dwarvesf#314, dwarvesf#345, dwarvesf#353.
sdenike
added a commit
to sdenike/hidden-revived
that referenced
this pull request
Apr 23, 2026
Adds the non-overlapping pieces of huynguyenh's PR dwarvesf#335 on top of rm335's PR dwarvesf#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 dwarvesf#354 and the bounded-length work in dwarvesf#344, this should resolve the runaway memory growth reported in upstream dwarvesf#326, dwarvesf#336, dwarvesf#351, dwarvesf#352. Co-Authored-By: huynguyenh <hoanghuy2908@gmail.com> Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.