Reputation: 13108
I'm trying to make notifications like Google Chrome's in Electron. I've tried setting focusable: false
but the window still takes focus on window.show()
I also tried setting show: true
and avoiding calling window.show()
but get the same effects.
I've done quite a bit of research and I can't find anything on this. Is there no way to do this besides asking the developers to implement such a feature? Thanks for any ideas.
Upvotes: 9
Views: 3556
Reputation: 4481
window.show()
will always focus the new Window, you have to use window.showInactive()
in order to open a window that is not focused.
Upvotes: 16