fix: double traffic lights on exit fullscreen (#30114)

This commit is contained in:
Shelley Vohr 2021-07-14 16:45:12 -07:00 committed by GitHub
parent 05ba6359d0
commit 3f38681c55
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1690,7 +1690,7 @@ bool NativeWindowMac::IsActive() const {
}
void NativeWindowMac::ReorderButtonsView() {
if (buttons_view_) {
if (buttons_view_ && !IsFullscreen()) {
[buttons_view_ removeFromSuperview];
[[window_ contentView] addSubview:buttons_view_];
}