From 553f26f4589010d5d567d607437fbada866b0c7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=98=D0=BB=D1=8C=D1=8F=20=D0=93=D0=BB=D0=B0=D0=B7=D1=83?= =?UTF-8?q?=D0=BD=D0=BE=D0=B2?= Date: Thu, 15 Jan 2026 04:28:22 +0300 Subject: [PATCH] Enhance window security by hiding content from screen capture on macOS --- src/utils/window.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/utils/window.js b/src/utils/window.js index 9cff896..3c0f0a8 100644 --- a/src/utils/window.js +++ b/src/utils/window.js @@ -582,12 +582,19 @@ function setupWindowIpcHandlers(mainWindow, sendToRenderer, geminiSessionRef) { resizable: false, movable: false, hasShadow: false, + // Hide from screen capture/sharing + ...(process.platform === 'darwin' ? { type: 'panel' } : {}), webPreferences: { nodeIntegration: true, contextIsolation: false, }, }); + // Hide window content from screen capture (macOS) + if (process.platform === 'darwin') { + regionSelectionWindow.setContentProtection(true); + } + regionSelectionWindow.setAlwaysOnTop(true, 'screen-saver', 1); // Create HTML content for selection overlay