Skip to content

Commit

Permalink
Fix built-in screen capturer dialog.
Browse files Browse the repository at this point in the history
• Fix background transparency of screen capturer dialog.
• Fix detaching of `WebContentsView`.

Resolves: #550
  • Loading branch information
SpacingBat3 committed Jul 7, 2024
1 parent 83cbfad commit d4d4c87
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sources/code/main/windows/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -504,6 +504,7 @@ export default function createMainWindow(...flags:MainWindowFlags): BrowserWindo
contextIsolation: true,
sandbox: false,
enableWebSQL: false,
transparent: true,
webgl: false,
autoplayPolicy: "user-gesture-required"
}
Expand All @@ -523,7 +524,7 @@ export default function createMainWindow(...flags:MainWindowFlags): BrowserWindo
return appConfig.value.screenShareStore;
});
ipcMain.once("closeCapturerView", (_event,data:Electron.Streams) => {
win.contentView.addChildView(view);
win.contentView.removeChildView(view);
view.webContents.delete();
win.removeListener("resize", autoResize);
ipcMain.removeHandler("capturer-get-settings");
Expand Down

0 comments on commit d4d4c87

Please sign in to comment.