mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-12-27 17:31:36 -06:00
SDA-3677 Screen share bugfix for Citrix Windows (#1413)
This commit is contained in:
parent
821bf16097
commit
e3732b9de0
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user