The fullscreen button should always be hidden for frameless window

This commit is contained in:
Cheng Zhao 2016-07-11 15:58:07 +09:00
parent 2220534df3
commit db8787fce1

View file

@ -1098,6 +1098,9 @@ void NativeWindowMac::InstallView() {
[view setFrame:[content_view_ bounds]]; [view setFrame:[content_view_ bounds]];
[content_view_ addSubview:view]; [content_view_ addSubview:view];
// The fullscreen button should always be hidden for frameless window.
[[window_ standardWindowButton:NSWindowFullScreenButton] setHidden:YES];
if (title_bar_style_ != NORMAL) if (title_bar_style_ != NORMAL)
return; return;