Skip to content

Commit 2ff3e98

Browse files
authored
Aux window: window.focus is broken (fix microsoft#196790) (microsoft#196791)
1 parent 47a0ab6 commit 2ff3e98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/workbench/services/auxiliaryWindow/electron-sandbox/auxiliaryWindowService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export class NativeAuxiliaryWindowService extends BrowserAuxiliaryWindowService
7171
auxiliaryWindow.focus = async function () {
7272
originalWindowFocus();
7373

74-
if (getActiveWindow() === auxiliaryWindow) {
74+
if (getActiveWindow() !== auxiliaryWindow) {
7575
that.nativeHostService.focusWindow({ targetWindowId: await windowId.p });
7676
}
7777
};

0 commit comments

Comments
 (0)