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

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_];
}