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

@ -34,7 +34,7 @@ When submitting a new issue, please supply the following information:
**Node Version**: Make sure it's version 12 or later (recommended is 14). **Node Version**: Make sure it's version 12 or later (recommended is 14).
**MagicMirror Version**: Please let us now which version of MagicMirror you are running. It can be found in the `package.json` file. **MagicMirror Version**: Please let us know which version of MagicMirror you are running. It can be found in the `package.json` file.
**Description**: Provide a detailed description about the issue and include specific details to help us understand the problem. Adding screenshots will help describing the problem. **Description**: Provide a detailed description about the issue and include specific details to help us understand the problem. Adding screenshots will help describing the problem.

View File

@ -34,7 +34,7 @@ When submitting a new issue, please supply the following information:
**Node Version**: Make sure it's version 12 or later (recommended is 14). **Node Version**: Make sure it's version 12 or later (recommended is 14).
**MagicMirror Version**: Please let us now which version of MagicMirror you are running. It can be found in the `package.json` file. **MagicMirror Version**: Please let us know which version of MagicMirror you are running. It can be found in the `package.json` file.
**Description**: Provide a detailed description about the issue and include specific details to help us understand the problem. Adding screenshots will help describing the problem. **Description**: Provide a detailed description about the issue and include specific details to help us understand the problem. Adding screenshots will help describing the problem.

View File

@ -27,6 +27,7 @@ _This release is scheduled to be released on 2021-10-01._
- Fix undefined error with ignoreToday option in weather module (#2620). - Fix undefined error with ignoreToday option in weather module (#2620).
- Fix time zone correction in calendar module when the date hour is equal to the time zone correction value (#2632). - Fix time zone correction in calendar module when the date hour is equal to the time zone correction value (#2632).
- Fix black cursor on startup when using electron.
## [2.16.0] - 2021-07-01 ## [2.16.0] - 2021-07-01

View File

@ -71,6 +71,11 @@ function createWindow() {
mainWindow.webContents.openDevTools(); 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. // Set responders for window events.
mainWindow.on("closed", function () { mainWindow.on("closed", function () {
mainWindow = null; mainWindow = null;