Merge pull request #4111 from evgenyzinoviev/movable

Added an option to prevent a window from being moved on OS X
This commit is contained in:
Cheng Zhao 2016-01-15 23:24:22 +08:00
commit 0937144849
4 changed files with 9 additions and 0 deletions

View file

@ -452,6 +452,11 @@ NativeWindowMac::NativeWindowMac(
set_force_using_draggable_region(true);
}
bool movable;
if (options.Get(options::kMovable, &movable)) {
[window_ setMovable:movable];
}
// On OS X the initial window size doesn't include window frame.
bool use_content_size = false;
options.Get(options::kUseContentSize, &use_content_size);