Bug 1402577: Display titles in titlebar on macOS when the native titlebar is in use. r=mstange

This commit is contained in:
Stephen A Pohl 2017-09-24 21:02:32 -04:00
Родитель 8134051ca0
Коммит 83a1ac4bee
1 изменённых файлов: 0 добавлений и 9 удалений

Просмотреть файл

@ -487,15 +487,6 @@ nsresult nsCocoaWindow::CreateNativeWindow(const NSRect &aRect,
mWindow = [[windowClass alloc] initWithContentRect:contentRect styleMask:features
backing:NSBackingStoreBuffered defer:YES];
if ([mWindow respondsToSelector:@selector(setTitleVisibility:)]) {
// By default, hide window titles.
[mWindow setTitleVisibility:NSWindowTitleHidden];
}
if ([mWindow respondsToSelector:@selector(setTitlebarAppearsTransparent:)]) {
// By default, hide window titlebars.
[mWindow setTitlebarAppearsTransparent:YES];
}
// setup our notification delegate. Note that setDelegate: does NOT retain.
mDelegate = [[WindowDelegate alloc] initWithGeckoWindow:this];
[mWindow setDelegate:mDelegate];