diff --git a/atom/browser/native_window_mac.mm b/atom/browser/native_window_mac.mm index 5564f9116e4b..7959eb04f55b 100644 --- a/atom/browser/native_window_mac.mm +++ b/atom/browser/native_window_mac.mm @@ -259,14 +259,12 @@ bool ScopedDisableResize::disable_resize_ = false; return [children filteredArrayUsingPredicate:predicate]; } -- (BOOL)canBecomeMainWindow -{ - return !self.disableKeyOrMainWindow; +- (BOOL)canBecomeMainWindow { + return !self.disableKeyOrMainWindow; } -- (BOOL)canBecomeKeyWindow -{ - return !self.disableKeyOrMainWindow; +- (BOOL)canBecomeKeyWindow { + return !self.disableKeyOrMainWindow; } @end @@ -394,7 +392,7 @@ NativeWindowMac::NativeWindowMac( if (windowType == "desktop") { [window_ setLevel:kCGDesktopWindowLevel - 1]; - [window_ setDisableKeyOrMainWindow: YES]; + [window_ setDisableKeyOrMainWindow:YES]; [window_ setCollectionBehavior: (NSWindowCollectionBehaviorCanJoinAllSpaces | NSWindowCollectionBehaviorStationary | diff --git a/docs/api/browser-window.md b/docs/api/browser-window.md index 46b7c96ae594..52b1bb8d5c5e 100644 --- a/docs/api/browser-window.md +++ b/docs/api/browser-window.md @@ -71,11 +71,11 @@ It creates a new `BrowserWindow` with native properties as set by the `options`. * On Linux, possible types are `desktop`, `dock`, `toolbar`, `splash`, `notification`. * On OS X, possible types are `desktop`, `textured`. The `textured` type adds - metal gradient appearance (NSTexturedBackgroundWindowMask). The `desktop` + metal gradient appearance (`NSTexturedBackgroundWindowMask`). The `desktop` type places the window at the desktop background window level - (kCGDesktopWindowLevel - 1). Note that desktop window will not receive focus, - keyboard or mouse events, but you can use `globalShortcut` to receive input - sparingly. + (`kCGDesktopWindowLevel - 1`). Note that desktop window will not receive + focus, keyboard or mouse events, but you can use `globalShortcut` to receive + input sparingly. * `titleBarStyle` String, OS X - specifies the style of window title bar. This option is supported on OS X 10.10 Yosemite and newer. There are three possible values: