up
This commit is contained in:
@@ -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)
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user