From 0d3cc8aaa789bce5da35736af9dc5ea9b37740e3 Mon Sep 17 00:00:00 2001 From: Max Graey Date: Sat, 18 Apr 2015 19:08:22 +0700 Subject: [PATCH] Fix some draw issues in native mac os window Fix some non-transparent corners and lacking redraw while resizing non-frame window --- atom/browser/native_window_mac.mm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/atom/browser/native_window_mac.mm b/atom/browser/native_window_mac.mm index 6688266..c1864d2 100644 --- a/atom/browser/native_window_mac.mm +++ b/atom/browser/native_window_mac.mm @@ -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]; -- 2.7.4