Set resizable on Linux from InitWithOptions

This commit is contained in:
Kevin Sawicki 2016-03-07 13:48:33 -08:00
parent 993b878925
commit 7de37859f0
2 changed files with 6 additions and 7 deletions

View file

@ -115,6 +115,12 @@ void NativeWindow::InitFromOptions(const mate::Dictionary& options) {
} else {
SetSizeConstraints(size_constraints);
}
#if defined(USE_X11)
bool resizable;
if (options.Get(options::kResizable, &resizable)) {
SetResizable(resizable);
}
#endif
#if defined(OS_WIN) || defined(USE_X11)
bool closable;
if (options.Get(options::kClosable, &closable)) {