From: Cheng Zhao Date: Tue, 23 Dec 2014 19:48:20 +0000 (-0800) Subject: mac: Don't show title text in transparent window X-Git-Tag: v0.20.6~5^2~7 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=8506725b5449aff252fceeb5d36de75cb3395a23;p=electron.git mac: Don't show title text in transparent window --- diff --git a/atom/browser/native_window_mac.mm b/atom/browser/native_window_mac.mm index 304e1f7f..a10acb35 100644 --- a/atom/browser/native_window_mac.mm +++ b/atom/browser/native_window_mac.mm @@ -545,6 +545,10 @@ gfx::Point NativeWindowMac::GetPosition() { } void NativeWindowMac::SetTitle(const std::string& title) { + // We don't want the title to show in transparent window. + if (transparent_) + return; + [window_ setTitle:base::SysUTF8ToNSString(title)]; }