visibility & decorations window creation toggled

This commit is contained in:
FTCHD
2025-02-01 20:04:12 +02:00
parent 5ac3ff7edb
commit a1bdf0f77c
+3 -2
View File
@@ -32,7 +32,7 @@ export async function openFullWindow({
visibleOnAllWorkspaces: false, visibleOnAllWorkspaces: false,
alwaysOnTop: false, alwaysOnTop: false,
resizable: true, resizable: true,
visible: true, visible: false,
focus: true, focus: true,
title: name, title: name,
decorations: true, decorations: true,
@@ -73,7 +73,7 @@ export async function openWindow({
visible: true, visible: true,
focus: true, focus: true,
title: name, title: name,
decorations: true, decorations: false,
url: url, url: url,
// parent: 'main', // parent: 'main',
}) })
@@ -83,6 +83,7 @@ export async function openWindow({
await w.hide() await w.hide()
await w.setSize(new LogicalSize(width, height)) await w.setSize(new LogicalSize(width, height))
await w.center() await w.center()
await w.setDecorations(true)
await w.show() await w.show()
useStore.setState({ firstWindow: false }) useStore.setState({ firstWindow: false })