Bug 1869853 - Reversed window transparency logic r=emilio

One-liner to fix the accidental omission of the "not" sign in window
transparency logic.

Differential Revision: https://phabricator.services.mozilla.com/D196329
This commit is contained in:
Vsevolod Buzinov 2023-12-13 21:02:59 +00:00
parent fe11f40ca0
commit 0b3eb819d6

View file

@ -1236,7 +1236,7 @@ void nsCocoaWindow::SetTransparencyMode(TransparencyMode aMode) {
}
BOOL isTransparent = aMode == TransparencyMode::Transparent;
BOOL currentTransparency = mWindow.isOpaque;
BOOL currentTransparency = !mWindow.isOpaque;
if (isTransparent == currentTransparency) {
return;
}