From 9b56cf3c3038bd4837bdfd0049b5c4ada008daad Mon Sep 17 00:00:00 2001 From: Shelley Vohr Date: Tue, 13 Jul 2021 12:05:08 -0700 Subject: [PATCH] fix: double traffic lights on exit fullscreen --- shell/browser/native_window_mac.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/browser/native_window_mac.mm b/shell/browser/native_window_mac.mm index bd810dbd87e19..5e420ad8edafd 100644 --- a/shell/browser/native_window_mac.mm +++ b/shell/browser/native_window_mac.mm @@ -1690,7 +1690,7 @@ void ViewDidMoveToSuperview(NSView* self, SEL _cmd) { } void NativeWindowMac::ReorderButtonsView() { - if (buttons_view_) { + if (buttons_view_ && !IsFullscreen()) { [buttons_view_ removeFromSuperview]; [[window_ contentView] addSubview:buttons_view_]; }