Browse Source

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

Co-authored-by: Shelley Vohr <[email protected]>
trop[bot] 3 years ago
parent
commit
34f9bdb8d3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      shell/browser/native_window_mac.mm

+ 1 - 1
shell/browser/native_window_mac.mm

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