fix: setSimpleFullScreen shows traffic light in frameless window (#26096)

This commit is contained in:
Shelley Vohr 2020-10-22 23:04:53 -07:00 committed by GitHub
parent 2d49d82072
commit 6181c03df0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1139,7 +1139,8 @@ void NativeWindowMac::SetSimpleFullScreen(bool simple_fullscreen) {
}
// 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]