diff --git a/atom/browser/native_window_mac.mm b/atom/browser/native_window_mac.mm index 4dac6b75c9f..70276c9a1cd 100644 --- a/atom/browser/native_window_mac.mm +++ b/atom/browser/native_window_mac.mm @@ -310,12 +310,12 @@ NativeWindowMac::NativeWindowMac(content::WebContents* web_contents, width, height); - bool useFrame = true; - options.Get(switches::kFrame, &useFrame); + bool useStandardWindow = false; + options.Get(switches::kStandardWindow, &useStandardWindow); NSUInteger styleMask = NSTitledWindowMask | NSClosableWindowMask | NSMiniaturizableWindowMask | NSResizableWindowMask; - if (!useFrame) { + if (!useStandardWindow) { styleMask |= NSTexturedBackgroundWindowMask; } diff --git a/atom/common/options_switches.cc b/atom/common/options_switches.cc index c479b5004d0..bfe34ee653c 100644 --- a/atom/common/options_switches.cc +++ b/atom/common/options_switches.cc @@ -78,6 +78,9 @@ const char kType[] = "type"; // Disable auto-hiding cursor. const char kDisableAutoHideCursor[] = "disable-auto-hide-cursor"; +// Use the OS X's standard window instead of the textured window. +const char kStandardWindow[] = "standard-window"; + // Web runtime features. const char kExperimentalFeatures[] = "experimental-features"; const char kExperimentalCanvasFeatures[] = "experimental-canvas-features"; diff --git a/atom/common/options_switches.h b/atom/common/options_switches.h index 546c6a04eb4..118271b6e99 100644 --- a/atom/common/options_switches.h +++ b/atom/common/options_switches.h @@ -42,6 +42,7 @@ extern const char kPreloadScript[]; extern const char kTransparent[]; extern const char kType[]; extern const char kDisableAutoHideCursor[]; +extern const char kStandardWindow[]; extern const char kExperimentalFeatures[]; extern const char kExperimentalCanvasFeatures[];