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

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