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:
commit
0937144849
4 changed files with 9 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue