<ul dir="auto">
<li>Electron Version: 2.0.2</li>
<li>Operating System (Platform and Version): Windows 10 (17134)</li>
<li>Last known working Electron version: N/A</li>
</ul>
<p dir="auto"><strong>Expected Behavior</strong><br>
When maximizing a frameless window, then unmaximizing and then maximizing again, there should not be a white bar atop the window.</p>
<p dir="auto"><strong>Actual behavior</strong><br>
The first maximize works. Removing maximize also works. Immediately maximizing again (without resizing the window) leaves a white bar several pixels high atop the browserwindow.</p>
<p dir="auto"><strong>To Reproduce</strong><br>
Use the latest Discord app (or various others like Spotify), follow the workflow above to reproduce this very easily.</p>
<p dir="auto">Further discussion here: <a href="https://www.reddit.com/r/Windows10/comments/8h3eqo/windows_1803_white_bar_across_top_of_maximized/" rel="nofollow">https://www.reddit.com/r/Windows10/comments/8h3eqo/windows_1803_white_bar_across_top_of_maximized/</a></p>
<p dir="auto">See a video of the behavior in action: <a href="url">http://recordit.co/3vTX9jpuVK</a></p>
<ul dir="auto">
<li>Electron Version: 2.0.1</li>
<li>Operating System (Platform and Version): Windows10 1803</li>
<li>Last known working Electron version: 2.0.1</li>
</ul>
<p dir="auto"><strong>Expected Behavior</strong><br>
Maximized normal and restore normal when i click button in no frame window</p>
<p dir="auto"><strong>Actual behavior</strong><br>
The first click is normal, but on the second click, there is a white edge on the window, and the window is also embedded under the taskbar.</p>
<p dir="auto"><strong>To Reproduce</strong></p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ git clone https://github.com/muxiaozi/electron-quick-start.git
$ cd electron-quick-start
$ npm install
$ npm start || electron ."><pre class="notranslate">$ git clone https://github.com/muxiaozi/electron-quick-start.git
$ <span class="pl-c1">cd</span> electron-quick-start
$ npm install
$ npm start <span class="pl-k">||</span> electron <span class="pl-c1">.</span></pre></div>
<p dir="auto"><strong>Screenshots</strong><br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/18480599/40154254-04d8592a-59c0-11e8-8864-acb12c1d26a7.png"><img src="https://user-images.githubusercontent.com/18480599/40154254-04d8592a-59c0-11e8-8864-acb12c1d26a7.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto"><strong>Additional Information</strong><br>
(┬＿┬)</p>