electron/shell
Iván Montes b3909f5600
fix: moveAbove not working on Windows (#23161)
* fix moveAbove on Windows systems

The documentation for [setWindowPos](https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-setwindowpos) second argument `hWndInsertAfter` is a bit confusing...

> A handle to the window to precede the positioned window in the Z order. This parameter must be a window handle or one of the following values.

Since Windows refers to the Z order from low to high it means that the window provided as reference will always _precede_ the electron window, which is the opposite of what we want in this function, since the electron window is displayed behind the referenced window.

The change is simply to ask `SetWindowPos` to position our window *behind* the window that's *above* the reference window, effectively making our window sit just above the reference one.

* lint
2020-04-21 15:58:38 -04:00
..
app fix: use Node's microtasks policy in node_main.cc (#23153) 2020-04-21 12:18:22 -07:00
browser fix: moveAbove not working on Windows (#23161) 2020-04-21 15:58:38 -04:00
common refactor: remove extra args from crashreporter init (#23144) 2020-04-20 14:44:09 -07:00
renderer chore: rename renderer_ipc.cc to ipc_renderer.cc (#23125) 2020-04-20 08:18:15 -07:00
utility chore: rename atom -> electron (#21986) 2020-02-04 12:19:40 -08:00