]> khamidou — GitHub mirrors - electron.git/commitdiff
Fix some draw issues in native mac os window
authorMax Graey <maxgraey@gmail.com>
Sat, 18 Apr 2015 12:08:22 +0000 (19:08 +0700)
committerMax Graey <maxgraey@gmail.com>
Sat, 18 Apr 2015 12:08:22 +0000 (19:08 +0700)
Fix some non-transparent corners and lacking redraw while resizing non-frame window

atom/browser/native_window_mac.mm

index 668826624b4b5f36bd2510f32f995e840d142989..c1864d218395e7219f35df2fe015d5765764281c 100644 (file)
@@ -348,6 +348,11 @@ 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_) {
+    [window_ setOpaque:NO];
+  }
 
   // We will manage window's lifetime ourselves.
   [window_ setReleasedWhenClosed:NO];