experiments in a post-browser web
10
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix(ipc): get-display-info returns workArea at top level for direct invoke

+9 -1
+9 -1
backend/electron/ipc.ts
··· 4014 4014 const win = BrowserWindow.fromWebContents(ev.sender); 4015 4015 if (!win || win.isDestroyed()) return { success: false, error: 'Window not found' }; 4016 4016 const display = screen.getDisplayMatching(win.getBounds()); 4017 - return { success: true, data: { workArea: display.workArea, bounds: display.bounds, scaleFactor: display.scaleFactor } }; 4017 + // Return workArea/bounds/scaleFactor both at top-level (for tests & direct invoke callers) 4018 + // and under `data` (preserved for existing page.js code which checks `.success`/`.data`). 4019 + return { 4020 + success: true, 4021 + workArea: display.workArea, 4022 + bounds: display.bounds, 4023 + scaleFactor: display.scaleFactor, 4024 + data: { workArea: display.workArea, bounds: display.bounds, scaleFactor: display.scaleFactor }, 4025 + }; 4018 4026 }); 4019 4027 4020 4028 ipcMain.handle('window-set-bounds', (ev, msg) => {