fix: macos sizing unmaximized window incorrectly

https://chromium-review.googlesource.com/c/chromium/src/+/7487666

Changes to headless mode caused the unmaximized window to subtract
the height of the menubar.
This commit is contained in:
Samuel Maddock
2026-02-06 12:27:18 -05:00
parent b89e1c7152
commit 61c1167472
2 changed files with 49 additions and 1 deletions

View File

@@ -320,7 +320,7 @@ void SwizzleSwipeWithEvent(NSView* view, SEL swiz_selector) {
}
- (void)disableHeadlessMode {
if (shell_) {
if (shell_ && self.isHeadless) {
// We initialize the window in headless mode to allow painting before it is
// shown, but we don't want the headless behavior of allowing the window to
// be placed unconstrained.