meslzy/electron-as-wallpaper

transparency failure

Closed this issue · 1 comments

frame: false, transparent: true, is not work after I used this

this is my browserWindow

trayWin = new BrowserWindow({
        width: 675,
        height: 680,
        enableLargerThanScreen: true,
		autoHideMenuBar: true,
        show: false,
        frame: false,
        transparent: true,
        webPreferences: {
            webSecurity: false,
            nodeIntegration: true,
            allowRunningInsecureContent: false,
            webviewTag: true,
            enableRemoteModule: true,
            contextIsolation: false,
            backgroundThrottling: false,
        },

    })

`

i can't detect whether the window is transparent or not, so i'll just add optional parameter which has the transparent property.