From 214e1434e5c3837321ff17ae02a21321ea8fa699 Mon Sep 17 00:00:00 2001 From: lohit Date: Fri, 30 Jan 2026 10:22:30 +0000 Subject: [PATCH] fix: ensure app gains focus when restoring main window (#6984) Add app.focus({ steal: true }) before restoring the window to ensure the application properly gains focus when activated. Co-authored-by: Claude Opus 4.5 --- packages/bruno-electron/src/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/bruno-electron/src/index.js b/packages/bruno-electron/src/index.js index 1470a6d9a..c567f48c1 100644 --- a/packages/bruno-electron/src/index.js +++ b/packages/bruno-electron/src/index.js @@ -93,6 +93,7 @@ let appProtocolUrl; // Helper function to focus and restore the main window const focusMainWindow = () => { if (mainWindow) { + app.focus({ steal: true }); if (mainWindow.isMinimized()) { mainWindow.restore(); }