From 403e069a22d64482010e9b19ad2096b065b18796 Mon Sep 17 00:00:00 2001 From: Jacob Schlecht Date: Sun, 19 Apr 2026 11:45:44 -0600 Subject: [PATCH] fix: Clear out the IPC listener if sources length is 1 Signed-off-by: Jacob Schlecht --- src/native/window.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/native/window.ts b/src/native/window.ts index 50db9ad..dd7e298 100644 --- a/src/native/window.ts +++ b/src/native/window.ts @@ -197,6 +197,9 @@ export function createMainWindow() { .then((sources) => { // Shortcut for linux wayland. if (sources.length == 1) { + // Clear out the IPC listener + mainWindow.webContents.send("screenpicker", []); + // TODO: Get audio to work with wayland // See vencord for an implementation using a virtual microphone. callback({