Use SizeConstraints instead of window events

This commit is contained in:
Heilig Benedek 2017-11-13 00:35:39 +01:00
parent ca76dda6a6
commit bb5eecc16c
4 changed files with 16 additions and 17 deletions

View file

@ -148,13 +148,11 @@ void NativeWindow::InitFromOptions(const mate::Dictionary& options) {
} else {
SetSizeConstraints(size_constraints);
}
#if defined(USE_X11)
#if defined(OS_WIN) || 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)) {
SetClosable(closable);