fix: update deprecated NSWindow masks (#14760)

This commit is contained in:
Shelley Vohr 2018-09-26 16:00:57 -07:00 committed by GitHub
parent be2c27d5b8
commit 985d35fc1c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 26 additions and 25 deletions

View file

@ -213,7 +213,7 @@
// Set window style to hide the toolbar, otherwise the toolbar will show
// in fullscreen mode.
[window setTitlebarAppearsTransparent:NO];
shell_->SetStyleMask(true, NSFullSizeContentViewWindowMask);
shell_->SetStyleMask(true, NSWindowStyleMaskFullSizeContentView);
}
}
}
@ -230,8 +230,7 @@
// Turn off the style for toolbar.
if (shell_->title_bar_style() == atom::NativeWindowMac::HIDDEN_INSET) {
shell_->SetStyleMask(false, NSFullSizeContentViewWindowMask);
[window setTitlebarAppearsTransparent:YES];
shell_->SetStyleMask(false, NSWindowStyleMaskFullSizeContentView);
}
}
}