Repository navigation
Add a Terminal option to use the full screen height when the menu bar is hidden - #1934
Merged
Merged
Conversation
When only the frontmost app hides the menu bar, macOS keeps reporting its strip as reserved in NSScreen.visibleFrame, so windows stop a menu bar's height short of the top of the screen. `defaults write com.knollsoft.Rectangle ignoreMenuBar -bool true` extends the visible frame to the top edge, staying below a notch, right after the Dock correction and before the Stage Manager, Todo and screen edge gap adjustments. Opt-in and Terminal-only; documented in TerminalCommands.md and carried by config export/import. Fixes rxhanson#1043 Co-Authored-By: Claude Fable 5.1 <[email protected]>
AkiyamaKunka
marked this pull request as draft
October 19, 2026 16:10
AkiyamaKunka
marked this pull request as ready for review
October 20, 2026 19:57
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.
Fixes #1043
When only the frontmost app hides the menu bar (for example with
LSUIPresentationModein its Info.plist), macOS keeps reporting the menu bar's strip as reserved inNSScreen.visibleFrame, so Maximize and the other actions stop a menu bar's height short of the top of the screen (777 of 800 pt in the issue's log).In #1043 you wrote: "if anyone wants to add in a Terminal command configured option to just use the whole screen, I'd merge it in." This is that option.
defaults write com.knollsoft.Rectangle ignoreMenuBar -bool trueWhat it does
adjustedVisibleFrameapplies a small pure helper (MenuBarUtil.frameIgnoringMenuBar) right after the Dock correction and before Stage Manager, Todo and the screen edge gaps, so every action, snap area and multi-window path picks it up the same way.screenEdgeGapTopandscreenEdgeGapTopNotchstill apply on top of the extended frame.Defaults.array).Why a dedicated key
A negative
screenEdgeGapTopalready grows the frame upward, but by a fixed number of points rather than each display's real menu bar height, and thescreenEdgeGapTopNotchbranch bypasses it on notched displays. The new key reads the right value per display.Notes
WindowManager.swiftor its extensions.useFullScreenHeight) if you prefer something else.Tests
MenuBarUtilTests: the pure helper (plain display, notch cap, already-full frames, never shrinks, Dock insets, secondary display origins,CGRect.null).IgnoreMenuBarTests: the top edge ofadjustedVisibleFramewith the option unset/on/off, on a notched screen, withscreenEdgeGapTopandscreenEdgeGapTopNotchcomposing on top,-bool trueread from UserDefaults, and a config export/import round trip.DefaultsExportTests.testIgnoreMenuBarInExportArray.