<ul dir="auto">
<li>Electron Version: tested on 1.8.7, 2.0.0, 2.0.3, 3.0.0-beta.1.</li>
<li>Operating System (Platform and Version): tested on Windows 10.0.17134.112</li>
<li>Last known working Electron version: Unclear</li>
</ul>
<p dir="auto"><strong>Expected Behavior</strong></p>
<p dir="auto">When using a frameless Window on Windows, the maximize behaviour is not consistent. To test this out, repeat these steps:</p>
<ul dir="auto">
<li>ensure the window is not maximized</li>
<li>maximize the window with <strong>Windows Key</strong> + <strong>Up</strong></li>
<li>unmaximize the window <strong>Windows Key</strong> + <strong>Down</strong> to revert to normal size</li>
<li>repeat</li>
</ul>
<p dir="auto">Each time you maximize, the available screen height should be used to render the frame.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/359239/41991903-6c2a7bda-7a1d-11e8-8742-bb8a30d92df6.png"><img width="1239" src="https://user-images.githubusercontent.com/359239/41991903-6c2a7bda-7a1d-11e8-8742-bb8a30d92df6.png" style="max-width: 100%;"></a></p>
<p dir="auto"><strong>Actual behavior</strong></p>
<p dir="auto">The window alternates between being in the correct spot (<code class="notranslate">[-8,-8]</code>) and incorrect spot (<code class="notranslate">[-8, 9]</code>) after maximizing which results in some of the desktop behind behind visible, with a white bar across the top of the frame.</p>
<p dir="auto">I switched my desktop background to green to emphasize the distinct parts:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/359239/41991619-748425a2-7a1c-11e8-89e3-94e5cb37a38a.png"><img width="1241" src="https://user-images.githubusercontent.com/359239/41991619-748425a2-7a1c-11e8-89e3-94e5cb37a38a.png" style="max-width: 100%;"></a></p>
<p dir="auto">I gather the white is the additional space outside the usable space available to the app, and is intended to be drawn offscreen.</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/shiftkey/electron-quick-start -b frameless-maximize-issue
$ npm install
$ npm start"><pre class="notranslate">$ git clone https://github.com/shiftkey/electron-quick-start -b frameless-maximize-issue
$ npm install
$ npm start</pre></div>
<p dir="auto"><strong>Screenshots</strong><br>
If applicable, add screenshots to help explain your problem.</p>
<p dir="auto"><strong>Additional Information</strong><br>
Add any other context about the problem here.</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>