This commit is contained in:
2026-10-17 18:54:57 +07:00
parent d3683ac6cf
commit 8b29b4f24e
5 changed files with 74 additions and 10 deletions
+3
View File
@@ -7,6 +7,8 @@ import { Controller } from './controller.js'
import { parseRange } from './range.js'
import type { HostInfo } from '../src/types/screen.js'
// Native Wayland запрещает размещение окна на выбранном дисплее по координатам.
if (process.platform === 'linux') app.commandLine.appendSwitch('ozone-platform', 'x11')
app.commandLine.appendSwitch('autoplay-policy', 'no-user-gesture-required')
protocol.registerSchemesAsPrivileged([
{
@@ -79,6 +81,7 @@ function show(displayId: number) {
output.once('ready-to-show', () => {
if (!window.isDestroyed()) {
window.show()
window.setBounds(display.bounds)
window.setFullScreen(true)
}
})