Skip to content

Commit

Permalink
fix: double traffic lights on exit fullscreen (#30149)
Browse files Browse the repository at this point in the history
Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
  • Loading branch information
trop[bot] and codebytere committed Jul 15, 2021
1 parent 52cddbc commit 1b0c15f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shell/browser/native_window_mac.mm
Expand Up @@ -1680,7 +1680,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_];
}
Expand Down

0 comments on commit 1b0c15f

Please sign in to comment.