diff --git a/src/native/window.ts b/src/native/window.ts index 9aeb5d6..b3da6e6 100644 --- a/src/native/window.ts +++ b/src/native/window.ts @@ -221,7 +221,11 @@ export function createMainWindow() { mainWindow.webContents.send( "screenPicker", sources.map((source, idx) => { - return { idx: idx, name: source.name }; + return { + idx: idx, + isFullScreen: source.id.startsWith("screen"), + name: source.name, + }; }), ); }); diff --git a/src/world/window.ts b/src/world/window.ts index 1cc6c12..2210608 100644 --- a/src/world/window.ts +++ b/src/world/window.ts @@ -18,7 +18,9 @@ contextBridge.exposeInMainWorld("native", { // Wrapped in braces to return void onceScreenPicker: ( - onScreenPick: (sources: { idx: number; name: string }[]) => void, + onScreenPick: ( + sources: { idx: number; isFullScreen: boolean; name: string }[], + ) => void, ) => { ipcRenderer.once("screenPicker", (_, sources) => onScreenPick(sources)); },