]> khamidou — GitHub mirrors - electron.git/commitdiff
Style fix
authorCheng Zhao <zcbenz@gmail.com>
Sat, 25 Apr 2015 02:35:28 +0000 (10:35 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Sat, 25 Apr 2015 02:35:28 +0000 (10:35 +0800)
atom/browser/native_window_mac.mm

index c1864d218395e7219f35df2fe015d5765764281c..1ac7f342a3f126fb9198e89437d121a13c88fba2 100644 (file)
@@ -348,11 +348,10 @@ NativeWindowMac::NativeWindowMac(content::WebContents* web_contents,
     [window_ setHasShadow:NO];
     [window_ setBackgroundColor:[NSColor clearColor]];
   }
-  
-  // Fix some non-transparent corners and lacking redraw while resizing non-frame window
-  if (!has_frame_) {
+
+  // Remove non-transparent corners, see http://git.io/vfonD.
+  if (!has_frame_)
     [window_ setOpaque:NO];
-  }
 
   // We will manage window's lifetime ourselves.
   [window_ setReleasedWhenClosed:NO];