Skip to content

Commit 4a15a87

Browse files
author
Benjamin Pasero
committed
disable support for simple fullscreen (microsoft#75054)
1 parent b86b7f1 commit 4a15a87

3 files changed

Lines changed: 11 additions & 10 deletions

File tree

src/vs/code/electron-main/window.ts

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -869,16 +869,17 @@ export class CodeWindow extends Disposable implements ICodeWindow {
869869
}
870870

871871
private useNativeFullScreen(): boolean {
872-
const windowConfig = this.configurationService.getValue<IWindowSettings>('window');
873-
if (!windowConfig || typeof windowConfig.nativeFullScreen !== 'boolean') {
874-
return true; // default
875-
}
872+
return true;
873+
// const windowConfig = this.configurationService.getValue<IWindowSettings>('window');
874+
// if (!windowConfig || typeof windowConfig.nativeFullScreen !== 'boolean') {
875+
// return true; // default
876+
// }
876877

877-
if (windowConfig.nativeTabs) {
878-
return true; // https://github.com/electron/electron/issues/16142
879-
}
878+
// if (windowConfig.nativeTabs) {
879+
// return true; // https://github.com/electron/electron/issues/16142
880+
// }
880881

881-
return windowConfig.nativeFullScreen !== false;
882+
// return windowConfig.nativeFullScreen !== false;
882883
}
883884

884885
isMinimized(): boolean {

src/vs/platform/windows/common/windows.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ export function getTitleBarStyle(configurationService: IConfigurationService, en
300300
return 'native'; // native tabs on sierra do not work with custom title style
301301
}
302302

303-
const useSimpleFullScreen = isMacintosh && configuration.nativeFullScreen === false;
303+
const useSimpleFullScreen = false; //isMacintosh && configuration.nativeFullScreen === false;
304304
if (useSimpleFullScreen) {
305305
return 'native'; // simple fullscreen does not work well with custom title style (https://github.com/Microsoft/vscode/issues/63291)
306306
}

src/vs/workbench/electron-browser/main.contribution.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ import product from 'vs/platform/product/node/product';
560560
'default': true,
561561
'description': nls.localize('window.nativeFullScreen', "Controls if native full-screen should be used on macOS. Disable this option to prevent macOS from creating a new space when going full-screen."),
562562
'scope': ConfigurationScope.APPLICATION,
563-
'included': isMacintosh
563+
'included': false /* isMacintosh */
564564
},
565565
'window.clickThroughInactive': {
566566
'type': 'boolean',

0 commit comments

Comments
 (0)