Skip to content

Commit

Permalink
SDA-3677 Screen share bugfix for Citrix Windows (#1412)
Browse files Browse the repository at this point in the history
  • Loading branch information
sbenmoussati committed May 6, 2022
1 parent 23e7d8e commit 0b451b3
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions src/app/window-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1469,20 +1469,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
// 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,
transparent: true,
frame: false,
x: 0,
y: 0,
resizable: false,
movable: false,
fullscreenable: false,
});
this.screenPickerPlaceholderWindow.show();
}
this.screenPickerPlaceholderWindow = new BrowserWindow({
width: 0,
height: 0,
transparent: true,
frame: false,
x: 0,
y: 0,
resizable: false,
movable: false,
fullscreenable: false,
});
this.screenPickerPlaceholderWindow.show();
}

window.send('start-share' + id, source);
Expand Down

0 comments on commit 0b451b3

Please sign in to comment.