Bug 1912338 - Consistently hide macOS titlebar separator for full screen windows. r=mac-reviewers,bradwerth

In bug 1906034, I attempted to preserve the workaround for the white line issue from bug 1700211, but it did not prevent the white line from appearing. Hiding the separator in response to full-screen events avoids the issue.

Differential Revision: https://phabricator.services.mozilla.com/D221576
This commit is contained in:
Sam Johnson
2024-09-10 17:54:41 +00:00
parent 79788192df
commit fc7f9f87e5

View File

@@ -2843,6 +2843,14 @@ void nsCocoaWindow::CocoaWindowDidResize() {
[titlebarContainerView setTransparent:NO];
}
if (@available(macOS 11.0, *)) {
// In order to work around a drawing bug with titlebarAppearsTransparent
// windows in full screen mode, disable titlebar separators for full
// screen windows. The drawing bug was filed as FB9056136. See bug 1700211
// and bug 1912338 for more details.
window.titlebarSeparatorStyle = NSTitlebarSeparatorStyleNone;
}
if (!mGeckoWindow) {
return;
}