Skip to content

Commit

Permalink
disable support for simple fullscreen (#75054)
Browse files Browse the repository at this point in the history
  • Loading branch information
bpasero committed Jun 24, 2019
1 parent b86b7f1 commit 4a15a87
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
17 changes: 9 additions & 8 deletions src/vs/code/electron-main/window.ts
Original file line number Diff line number Diff line change
Expand Up @@ -869,16 +869,17 @@ export class CodeWindow extends Disposable implements ICodeWindow {
}

private useNativeFullScreen(): boolean {
const windowConfig = this.configurationService.getValue<IWindowSettings>('window');
if (!windowConfig || typeof windowConfig.nativeFullScreen !== 'boolean') {
return true; // default
}
return true;
// const windowConfig = this.configurationService.getValue<IWindowSettings>('window');
// if (!windowConfig || typeof windowConfig.nativeFullScreen !== 'boolean') {
// return true; // default
// }

if (windowConfig.nativeTabs) {
return true; // https://github.com/electron/electron/issues/16142
}
// if (windowConfig.nativeTabs) {
// return true; // https://github.com/electron/electron/issues/16142
// }

return windowConfig.nativeFullScreen !== false;
// return windowConfig.nativeFullScreen !== false;
}

isMinimized(): boolean {
Expand Down
2 changes: 1 addition & 1 deletion src/vs/platform/windows/common/windows.ts
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ export function getTitleBarStyle(configurationService: IConfigurationService, en
return 'native'; // native tabs on sierra do not work with custom title style
}

const useSimpleFullScreen = isMacintosh && configuration.nativeFullScreen === false;
const useSimpleFullScreen = false; //isMacintosh && configuration.nativeFullScreen === false;
if (useSimpleFullScreen) {
return 'native'; // simple fullscreen does not work well with custom title style (https://github.com/Microsoft/vscode/issues/63291)
}
Expand Down
2 changes: 1 addition & 1 deletion src/vs/workbench/electron-browser/main.contribution.ts
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@ import product from 'vs/platform/product/node/product';
'default': true,
'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."),
'scope': ConfigurationScope.APPLICATION,
'included': isMacintosh
'included': false /* isMacintosh */
},
'window.clickThroughInactive': {
'type': 'boolean',
Expand Down

0 comments on commit 4a15a87

Please sign in to comment.