SDA-3677 Screen share bugfix for Citrix Windows (#1413)

This commit is contained in:
Salah Benmoussati
2022-05-11 11:01:12 +02:00
committed by GitHub
parent 821bf16097
commit e3732b9de0

View File

@@ -1470,7 +1470,6 @@ export class WindowHandler {
// SDA-3646 hack for macOS: whenever we try to close the penultimate window (here screensharing screen picker), Electron activates the last Electron window
// This behaviour was observed while trying to upgrade from Electron 14 to Electron 17
// Here the hack to solve that issue is to create a new invisible BrowserWindow.
if (isMac) {
this.screenPickerPlaceholderWindow = new BrowserWindow({
width: 0,
height: 0,
@@ -1484,7 +1483,6 @@ export class WindowHandler {
});
this.screenPickerPlaceholderWindow.show();
}
}
window.send('start-share' + id, source);
if (this.screenPickerWindow && windowExists(this.screenPickerWindow)) {