Do not focus screen share controller window on load

This commit is contained in:
Josh Perez
2021-06-04 11:20:42 -04:00
committed by GitHub
parent ba1ba46f4d
commit 15678efb4d

View File

@@ -750,7 +750,7 @@ function setupAsStandalone() {
let screenShareWindow;
function showScreenShareWindow(sourceName) {
if (screenShareWindow) {
screenShareWindow.show();
screenShareWindow.showInactive();
return;
}
@@ -794,7 +794,7 @@ function showScreenShareWindow(sourceName) {
});
screenShareWindow.once('ready-to-show', () => {
screenShareWindow.show();
screenShareWindow.showInactive();
screenShareWindow.webContents.send(
'render-screen-sharing-controller',
sourceName