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

Most upvoted comments

My PR should fix that too