From 9fc9b964c26cd1d5cb56d695c4729a55e3f1ceba Mon Sep 17 00:00:00 2001 From: BhagwanSingh Date: Wed, 26 Nov 2025 13:02:58 +0530 Subject: [PATCH] Tracker Closes automatically on zoom meetings Bug Fix --- src/electron/main.ts | 10 +++++----- src/electron/utils/utilityFunctions.ts | 3 +++ 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/electron/main.ts b/src/electron/main.ts index d8319c4..700c5c6 100644 --- a/src/electron/main.ts +++ b/src/electron/main.ts @@ -76,11 +76,6 @@ app.on("ready", async () => { path.join(__dirname, "../assets/splash.html") ); - - - - - // Create the main window const win = new BrowserWindow({ width: 500, @@ -104,6 +99,11 @@ app.on("ready", async () => { }, }); + win.setAlwaysOnTop(true, 'screen-saver'); + win.setVisibleOnAllWorkspaces(true, { visibleOnFullScreen: true }); + win.setFullScreenable(false); + + mainWindow = win; // ------------------------------------ diff --git a/src/electron/utils/utilityFunctions.ts b/src/electron/utils/utilityFunctions.ts index c56e5a2..87f80e5 100644 --- a/src/electron/utils/utilityFunctions.ts +++ b/src/electron/utils/utilityFunctions.ts @@ -138,11 +138,14 @@ export const getRunningAppsList = async () => { thumbnailSize: { width: 150, height: 150 } // Optional: set thumbnail size }); + console.log(sources, "Sources Retrieved"); + const app = sources.map(source => ({ name: source.name, pid: source.id, // thumbnail: source.thumbnail // Can be used as screenshot })); + return app } catch (error) { return []