From 033f9bcceddfc21c0d82e8759d5d948860c908c9 Mon Sep 17 00:00:00 2001 From: joshaber Date: Tue, 12 May 2015 21:05:48 -0400 Subject: [PATCH 1/2] If the window's transparent it also needs to be textured. --- atom/browser/native_window_mac.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/atom/browser/native_window_mac.mm b/atom/browser/native_window_mac.mm index 8dd6bcbacbe1..2a5813c1072e 100644 --- a/atom/browser/native_window_mac.mm +++ b/atom/browser/native_window_mac.mm @@ -315,7 +315,7 @@ NativeWindowMac::NativeWindowMac(content::WebContents* web_contents, NSUInteger styleMask = NSTitledWindowMask | NSClosableWindowMask | NSMiniaturizableWindowMask | NSResizableWindowMask; - if (!useStandardWindow) { + if (!useStandardWindow || transparent_) { styleMask |= NSTexturedBackgroundWindowMask; } From 76d33c37d7fb74e898d56b5a28fd2669e4f9d362 Mon Sep 17 00:00:00 2001 From: joshaber Date: Tue, 12 May 2015 21:11:43 -0400 Subject: [PATCH 2/2] Use the textured window for the frameless case too. --- atom/browser/native_window_mac.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/atom/browser/native_window_mac.mm b/atom/browser/native_window_mac.mm index 2a5813c1072e..a9ff57d8d279 100644 --- a/atom/browser/native_window_mac.mm +++ b/atom/browser/native_window_mac.mm @@ -315,7 +315,7 @@ NativeWindowMac::NativeWindowMac(content::WebContents* web_contents, NSUInteger styleMask = NSTitledWindowMask | NSClosableWindowMask | NSMiniaturizableWindowMask | NSResizableWindowMask; - if (!useStandardWindow || transparent_) { + if (!useStandardWindow || transparent_ || !has_frame_) { styleMask |= NSTexturedBackgroundWindowMask; }