Kyle
Kyle

Reputation: 59

ElectronJS - How to pop up in the background

I’m completely new to Electron JS and I’ve tried reading through the documentation, but no to avail.

I was just wondering if there was a way to create a browser window, then show the window in behind of all the running applications. Is that possible?

Upvotes: 0

Views: 747

Answers (1)

Hadrien TOMA
Hadrien TOMA

Reputation: 2723

You can use win.focus() (documentation here) on other windows to put them on top, letting the new one behind.

Edit:

  • If by all runnings applications you mean even applications that are not part of your Electron app, I would suggest to use nwm. Assuming that you are using X11.

Upvotes: 1

Related Questions