Skip to content

Commit 8e42bda

Browse files
authored
Check whether WCO is enabled, fixes microsoft#158203 (microsoft#158214)
1 parent 5a94444 commit 8e42bda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/platform/windows/electron-main/windowImpl.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1072,7 +1072,7 @@ export class CodeWindow extends Disposable implements ICodeWindow {
10721072
}
10731073

10741074
// Windows: window control overlay (WCO)
1075-
if (isWindows) {
1075+
if (isWindows && useWindowControlsOverlay(this.configurationService, this.environmentMainService)) {
10761076
this._win.setTitleBarOverlay({
10771077
color: options.backgroundColor?.trim() === '' ? undefined : options.backgroundColor,
10781078
symbolColor: options.foregroundColor?.trim() === '' ? undefined : options.foregroundColor,

0 commit comments

Comments
 (0)