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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1470,20 +1470,18 @@ 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 // 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 // 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. // Here the hack to solve that issue is to create a new invisible BrowserWindow.
if (isMac) { this.screenPickerPlaceholderWindow = new BrowserWindow({
this.screenPickerPlaceholderWindow = new BrowserWindow({ width: 0,
width: 0, height: 0,
height: 0, transparent: true,
transparent: true, frame: false,
frame: false, x: 0,
x: 0, y: 0,
y: 0, resizable: false,
resizable: false, movable: false,
movable: false, fullscreenable: false,
fullscreenable: false, });
}); this.screenPickerPlaceholderWindow.show();
this.screenPickerPlaceholderWindow.show();
}
} }
window.send('start-share' + id, source); window.send('start-share' + id, source);