mirror of
https://github.com/electron/electron.git
synced 2026-05-02 03:00:22 -04:00
Added option to prevent a window from being moved on OS X
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user