Skip to content

Commit

Permalink
fix: setSimpleFullScreen shows traffic light in frameless window (#26128
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 Oct 23, 2020
1 parent d073ab6 commit 6785021
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion shell/browser/native_window_mac.mm
Expand Up @@ -1116,7 +1116,8 @@ void ViewDidMoveToSuperview(NSView* self, SEL _cmd) {
}

// Restore window controls visibility state
const bool window_button_hidden = !window_button_visibility_.value_or(true);
const bool window_button_hidden =
!window_button_visibility_.value_or(true) || !has_frame();
[[window standardWindowButton:NSWindowZoomButton]
setHidden:window_button_hidden];
[[window standardWindowButton:NSWindowMiniaturizeButton]
Expand Down

0 comments on commit 6785021

Please sign in to comment.