disable black cursor on start

This commit is contained in:
Karsten Hassel
2021-08-29 22:12:14 +02:00
parent 8589d9c482
commit 8879fb55de
4 changed files with 8 additions and 2 deletions

View File

@@ -71,6 +71,11 @@ function createWindow() {
mainWindow.webContents.openDevTools();
}
// simulate mouse move to hide black cursor on start
mainWindow.webContents.on('dom-ready', (event)=> {
mainWindow.webContents.sendInputEvent({type: "mouseMove", x: 0, y: 0});
});
// Set responders for window events.
mainWindow.on("closed", function () {
mainWindow = null;