Skip to content

Commit

Permalink
Merge pull request #6089 from brave/window-menu
Browse files Browse the repository at this point in the history
set the title for hidden and hidden-inset windows so they show up in …
  • Loading branch information
zcbenz committed Jun 17, 2016
2 parents 1a70fd8 + 2094b39 commit d2a831a
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions atom/browser/native_window_mac.mm
Expand Up @@ -800,11 +800,10 @@ - (void)drawRect:(NSRect)dirtyRect {
void NativeWindowMac::SetTitle(const std::string& title) {
title_ = title;

// We don't want the title to show in transparent or frameless window.
if (transparent() || !has_frame())
return;

[window_ setTitle:base::SysUTF8ToNSString(title)];
if (!transparent() && (has_frame() ||
// exception for hidden and hidden-inset
force_show_buttons_))
[window_ setTitle:base::SysUTF8ToNSString(title)];
}

std::string NativeWindowMac::GetTitle() {
Expand Down

0 comments on commit d2a831a

Please sign in to comment.