fix(desktop): refit the macOS workspace after full-screen transitions

This commit is contained in:
fatelei
2026-11-30 20:53:31 +08:00
parent fea1be2c97
commit fa3d4c3180

View File

@@ -880,6 +880,10 @@ else {
window.webContents.on('will-navigate', event => event.preventDefault());
window.webContents.setWindowOpenHandler(() => ({ action: 'deny' }));
window.on('resize', layout);
if (process.platform === 'darwin') {
window.on('enter-full-screen', layout);
window.on('leave-full-screen', layout);
}
window.on('close', event => { if (!exitAllowed) { event.preventDefault(); app.quit(); } });
ipcMain.on('desktop:status-sync', event => {
trustedShell(event);