@@ -572,6 +572,36 @@ index cf1d6b5b60..be8fdb32f7 100644
572
572
}
573
573
574
574
// Make the window active to handle the drop properly within
575
+ diff --git a/src/vs/workbench/browser/layout.ts b/src/vs/workbench/browser/layout.ts
576
+ index a213ed7b02..df1ce972c6 100644
577
+ --- a/src/vs/workbench/browser/layout.ts
578
+ +++ b/src/vs/workbench/browser/layout.ts
579
+ @@ -230,7 +230,7 @@ export abstract class Layout extends Disposable implements IWorkbenchLayoutServi
580
+ if (visible !== this.state.menuBar.toggled) {
581
+ this.state.menuBar.toggled = visible;
582
+
583
+ - if (this.state.fullscreen && (this.state.menuBar.visibility === 'toggle' || this.state.menuBar.visibility === 'default')) {
584
+ + if (this.state.menuBar.visibility === 'toggle' || (this.state.fullscreen && this.state.menuBar.visibility === 'default')) {
585
+ this._onTitleBarVisibilityChange.fire();
586
+ this.layout();
587
+ }
588
+ @@ -519,13 +519,13 @@ export abstract class Layout extends Disposable implements IWorkbenchLayoutServi
589
+ case Parts.TITLEBAR_PART:
590
+ if (getTitleBarStyle(this.configurationService, this.environmentService) === 'native') {
591
+ return false;
592
+ - } else if (!this.state.fullscreen) {
593
+ - return true;
594
+ + } else if (this.state.menuBar.visibility === 'default') {
595
+ + return !this.state.fullscreen || this.state.menuBar.toggled;
596
+ } else if (isMacintosh && isNative) {
597
+ return false;
598
+ } else if (this.state.menuBar.visibility === 'visible') {
599
+ return true;
600
+ - } else if (this.state.menuBar.visibility === 'toggle' || this.state.menuBar.visibility === 'default') {
601
+ + } else if (this.state.menuBar.visibility === 'toggle') {
602
+ return this.state.menuBar.toggled;
603
+ }
604
+
575
605
diff --git a/src/vs/workbench/browser/web.main.ts b/src/vs/workbench/browser/web.main.ts
576
606
index ede771a03e..2621eb3755 100644
577
607
--- a/src/vs/workbench/browser/web.main.ts
0 commit comments