electron: Windows: display-removed event not working
Hi all, I’m trying to use the display-removed event in my electron app, but while under OSX 10.10 all works correctly, under Windows 7 the event is not detected/emitted.
This is my code:
let electronScreen = require('screen');
electronScreen.on('display-removed', () => {
console.log('display removed');
});
The event display-added works correctly.
I’m using Electron 0.33.7.
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 16 (3 by maintainers)
Commits related to this issue
- Merge pull request #5334 from miniak/fix-screen-events Fix #3075 by not caching the displays (id is not persistent on Windows) — committed to electron/electron by zcbenz 8 years ago
- Fix #3075 by not caching the displays (id is not persistent on Windows) — committed to Floato/electron by miniak 8 years ago
My PR should fix that too