fix: setSimpleFullScreen shows traffic light in frameless window (#26096)
This commit is contained in:
parent
2d49d82072
commit
6181c03df0
1 changed files with 2 additions and 1 deletions
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue