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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user