diff --git a/src/vs/workbench/browser/parts/titlebar/titlebarPart.ts b/src/vs/workbench/browser/parts/titlebar/titlebarPart.ts index d7112d84a45e6e4227874d82314eec0b039704e3..61f11d7209c7e3d63eee7210915323a2b5e177eb 100644 --- a/src/vs/workbench/browser/parts/titlebar/titlebarPart.ts +++ b/src/vs/workbench/browser/parts/titlebar/titlebarPart.ts @@ -252,13 +252,15 @@ export class TitlebarPart extends Part implements ITitleService { // App Icon (Windows/Linux) if (!isMacintosh) { - this.appIcon = $(this.titleContainer).div({ - class: 'window-appicon', - }).on(EventType.DBLCLICK, e => { - EventHelper.stop(e, true); + this.appIcon = $(this.titleContainer).div({ class: 'window-appicon' }); - this.windowService.closeWindow().then(null, errors.onUnexpectedError); - }); + if (isWindows) { + this.appIcon.on(EventType.DBLCLICK, e => { + EventHelper.stop(e, true); + + this.windowService.closeWindow().then(null, errors.onUnexpectedError); + }); + } } // Title