Fixed: linux mini-window tranparent bug

This commit is contained in:
Molunerfinn
2018-07-11 09:39:23 +08:00
parent f48021d928
commit 353f553988
2 changed files with 21 additions and 5 deletions
+8 -2
View File
@@ -204,7 +204,7 @@ const createMiniWidow = () => {
if (miniWindow) {
return false
}
miniWindow = new BrowserWindow({
let obj = {
height: 64,
width: 64,
show: false,
@@ -216,7 +216,13 @@ const createMiniWidow = () => {
webPreferences: {
backgroundThrottling: false
}
})
}
if (process.platform === 'linux') {
obj.transparent = false
}
miniWindow = new BrowserWindow(obj)
miniWindow.loadURL(miniWinURL)