Javascript Windows拆分屏幕不适用于电子无框窗口
嗨,我正试图在我的无框架windows electron应用程序中使用windows分屏功能,但这是徒劳的。但同样适用于带框架的electron应用程序。请帮助我 my electron应用程序窗口的配置为:Javascript Windows拆分屏幕不适用于电子无框窗口,javascript,windows,electron,Javascript,Windows,Electron,嗨,我正试图在我的无框架windows electron应用程序中使用windows分屏功能,但这是徒劳的。但同样适用于带框架的electron应用程序。请帮助我 my electron应用程序窗口的配置为: function createWindow () { // Create the browser window. mainWindow = new BrowserWindow({ width: 1400, height: 900,
function createWindow () {
// Create the browser window.
mainWindow = new BrowserWindow({
width: 1400,
height: 900,
frame: false,
transparent:true,
backgroundColor: '#FFF',
webPreferences: {
nodeIntegration: true,
enableRemoteModule: true
}
});
// and load the index.html of the app.
mainWindow.loadFile('index.html');
// Open the DevTools.
// mainWindow.webContents.openDevTools();
// Emitted when the window is closed.
mainWindow.on('closed', () => {
// Dereference the window object, usually you would store windows
// in an array if your app supports multi windows, this is the time
// when you should delete the corresponding element.
mainWindow = null;
});
}