<ul dir="auto">
<li>Electron Version: 3.0.0-beta.1</li>
<li>Operating System (Platform and Version): MacOS High Sierra (10.13.4)</li>
<li>Last known working Electron version: 2.0.3</li>
</ul>
<p dir="auto"><strong>To Reproduce</strong></p>
<ol dir="auto">
<li>Add `titleBarStyle: 'hidden' as option while creating a new electron window</li>
<li>Add <code class="notranslate">-webkit-app-region: drag</code> style to the element by which the app window should move (header or whole body)</li>
<li>Run the app and try to move the app window</li>
</ol>
<p dir="auto"><strong>Additional Information</strong><br>
It works fine with the latest stable release (v2.0.3) but doesn't work with v3.0.0-beta.1</p>
<p dir="auto">The other issue is tagged V7 so I'm creating this for visibility.<br>
Link: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="516695919" data-permission-text="Title is private" data-url="https://github.com/electron/electron/issues/20933" data-hovercard-type="issue" data-hovercard-url="/electron/electron/issues/20933/hovercard" href="https://github.com/electron/electron/issues/20933">#20933</a></p>
<p dir="auto">Issue Details<br>
Electron Version:<br>
7 - 9, possibly above<br>
Operating System:<br>
Windows 10<br>
Last Known Working Electron version:<br>
6.0.7<br>
Expected Behavior<br>
BrowserWindow with alwaysOnTop should remain above other windows even after losing focus.</p>
<p dir="auto">Actual Behavior<br>
The BrowserWindow keeps focus when being launched but after changing properties on the window and losing focus, the window goes behind the focused window.</p>
<p dir="auto">To Reproduce<br>
You can reproduce using a small utility repo here: lacymorrow/crossover.</p>
<p dir="auto">The package.json starts with a working Electron v6.0.7.</p>
<p dir="auto">$ git clone <a href="https://github.com/lacymorrow/crossover.git">https://github.com/lacymorrow/crossover.git</a><br>
$ npm install<br>
$ npm start<br>
Test that window stays above other focused windows, and toggle a few times with CTRL+SHIFT+X.</p>
<p dir="auto">rm -rf node_modules and change the Electron version in package.json to 7.0.0</p>
<p dir="auto">$ npm install<br>
$ npm start<br>
Toggle with CTRL+SHIFT+X and focus another window. The Electron window loses focus.</p>
<p dir="auto">To see the problem immediately you can use the executable from the releases page here: lacymorrow/crossover/releases</p>
<p dir="auto">v0.2.12 Uses Electron v7 and exhibits the issue<br>
v0.2.13 Uses Electron v6.0.7 and works as expected</p>