From 1ddb9fde5234d2ad143b34cf2728eb8eaf1475ce Mon Sep 17 00:00:00 2001 From: WINBIGFOX Date: Wed, 30 Jul 2025 19:34:23 +0200 Subject: [PATCH] Add `skipTaskbar` and `hiddenInMissionControl` properties to window API Enhanced the window API by including support for the `skipTaskbar` and `hiddenInMissionControl` properties, enabling more control over window visibility and behavior. --- resources/js/electron-plugin/dist/server/api/window.js | 4 +++- resources/js/electron-plugin/src/server/api/window.ts | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/resources/js/electron-plugin/dist/server/api/window.js b/resources/js/electron-plugin/dist/server/api/window.js index b94d3770..9e1e0a2e 100644 --- a/resources/js/electron-plugin/dist/server/api/window.js +++ b/resources/js/electron-plugin/dist/server/api/window.js @@ -139,7 +139,7 @@ function getWindowData(id) { }; } router.post('/open', (req, res) => { - let { id, x, y, frame, width, height, minWidth, minHeight, maxWidth, maxHeight, focusable, hasShadow, url, resizable, movable, minimizable, maximizable, closable, title, alwaysOnTop, titleBarStyle, trafficLightPosition, vibrancy, backgroundColor, transparency, showDevTools, fullscreen, fullscreenable, kiosk, autoHideMenuBar, webPreferences, } = req.body; + let { id, x, y, frame, width, height, minWidth, minHeight, maxWidth, maxHeight, focusable, skipTaskbar, hiddenInMissionControl, hasShadow, url, resizable, movable, minimizable, maximizable, closable, title, alwaysOnTop, titleBarStyle, trafficLightPosition, vibrancy, backgroundColor, transparency, showDevTools, fullscreen, fullscreenable, kiosk, autoHideMenuBar, webPreferences, } = req.body; if (state.windows[id]) { state.windows[id].show(); state.windows[id].focus(); @@ -179,6 +179,8 @@ router.post('/open', (req, res) => { trafficLightPosition, vibrancy, focusable, + skipTaskbar, + hiddenInMissionControl, autoHideMenuBar }, (process.platform === 'linux' ? { icon: state.icon } : {})), { webPreferences: Object.assign(Object.assign({}, webPreferences), defaultWebPreferences), fullscreen, fullscreenable, kiosk })); diff --git a/resources/js/electron-plugin/src/server/api/window.ts b/resources/js/electron-plugin/src/server/api/window.ts index 3ee8083e..640e0be1 100644 --- a/resources/js/electron-plugin/src/server/api/window.ts +++ b/resources/js/electron-plugin/src/server/api/window.ts @@ -203,6 +203,8 @@ router.post('/open', (req, res) => { maxWidth, maxHeight, focusable, + skipTaskbar, + hiddenInMissionControl, hasShadow, url, resizable, @@ -283,6 +285,8 @@ router.post('/open', (req, res) => { trafficLightPosition, vibrancy, focusable, + skipTaskbar, + hiddenInMissionControl, autoHideMenuBar, ...(process.platform === 'linux' ? {icon: state.icon} : {}), webPreferences: {