Skip to content

Commit

Permalink
Do not focus screen share controller window on load
Browse files Browse the repository at this point in the history
Co-authored-by: Josh Perez <60019601+josh-signal@users.noreply.github.com>
  • Loading branch information
automated-signal and josh-signal committed Jun 4, 2021
1 parent 198a7a0 commit 6364879
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -750,7 +750,7 @@ function setupAsStandalone() {
let screenShareWindow;
function showScreenShareWindow(sourceName) {
if (screenShareWindow) {
screenShareWindow.show();
screenShareWindow.showInactive();
return;
}

Expand Down Expand Up @@ -794,7 +794,7 @@ function showScreenShareWindow(sourceName) {
});

screenShareWindow.once('ready-to-show', () => {
screenShareWindow.show();
screenShareWindow.showInactive();
screenShareWindow.webContents.send(
'render-screen-sharing-controller',
sourceName
Expand Down

0 comments on commit 6364879

Please sign in to comment.