<ul dir="auto">
<li>Electron version: the one bundled with Atom 1.7.1, also 0.36.0</li>
<li>Operating system: Linux</li>
</ul>
<p dir="auto">The "focus()" call does not actually focus the window, it only raises it. Focus remains in the caller app (terminal, for instance).</p>
<p dir="auto">No "focus stealing prevention" is used. This can be reproduced on multiple window managers (xfwm, unity).</p>
<p dir="auto">Steps to reproduce, using Atom (as an example -- works with any other Electron-based app that focuses itself):</p>
<ol dir="auto">
<li>open terminal</li>
<li><code class="notranslate">atom myfile.txt</code></li>
<li>switch back to terminal</li>
<li><code class="notranslate">atom myfile.txt</code></li>
<li>note that Atom raised itself, but the focus is still in terminal.</li>
</ol>
<p dir="auto">I am hitting an issue where a window (in Windows 10) is not being put to the front when I call focus() on it. The same code brings the window to the front on Windows 8 and below, so something must have changed in Windows 10 with regards to window management.</p>
<p dir="auto">What I see happening is that the task bar is flashing in orange, so there is some indication. Just the window does not get focussed properly.</p>