Change system z-order of BrowserWindow in electron, possible?

desktop-application, electron, javascript

Solution

If it's not something you can accomplish with parent/child windows then you could call `SetWindowPos()` via `node-ffi` (or write a native Node module/addon). To get the `HWND` for a `BrowserWindow` call `getNativeWindowHandle()`. I have no idea how you'd do this natively on macOS or Ubuntu.

Problem

I need to control main window z-order so to say. Always on top is not my case. I want to put my window behind all others and above desktop. Is it possible? Is there analogue to C++ SetWindowPos function? Or maybe some workaround?

Original source