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