<ul dir="auto">
<li><strong>Electron Version:</strong>
<ul dir="auto">
<li>4.x, 3.x</li>
</ul>
</li>
<li><strong>Operating System:</strong>
<ul dir="auto">
<li>macOS 10.13.5</li>
</ul>
</li>
<li><strong>Last Known Working Electron version:</strong>:
<ul dir="auto">
<li>unknown</li>
</ul>
</li>
</ul>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto">Top area is always clickable no matter what window state is.</p>
<h3 dir="auto">Actual Behavior</h3>
<p dir="auto">Top area is not clickable after BrowserWindow is maximized then restored when titleBar set to "hiddenInset"</p>
<h3 dir="auto">To Reproduce</h3>
<ol dir="auto">
<li>Create a simple electron app.</li>
<li>Set titleBarStyle of BrowserWindow to "hiddenInset"</li>
<li>put a button in the top area of the Window, give it a click handler</li>
<li>maximize then restored the Window, you will find the button is not clickable.</li>
</ol>
<p dir="auto">Or</p>
<p dir="auto">git clone <a href="https://github.com/circleapps/electron-quick-start">https://github.com/circleapps/electron-quick-start</a><br>
npm install<br>
npm start</p>
<ol dir="auto">
<li>Click the button in the middle of the top area of the Window, it is clickable</li>
<li>Maximize the Window.</li>
<li>Restore the Window to its normal size</li>
<li>Click the button again, the button is not clickable.</li>
</ol>
<ul dir="auto">
<li>Output of <code class="notranslate">node_modules/.bin/electron --version</code>: v4.0.1</li>
<li>Operating System (Platform and Version): macOS 10.14.2</li>
</ul>
<p dir="auto"><strong>Expected Behavior</strong><br>
The top of the window should continue responding to clicks after exiting from fullscreen.</p>
<p dir="auto"><strong>Actual behavior</strong><br>
The top ~40px stops responding to clicks after exiting from fullscreen.</p>
<p dir="auto"><strong>To Reproduce</strong></p>
<ol dir="auto">
<li>Clone and run <a href="https://github.com/javan/electron-quick-start/tree/hidden-inset-mojave">https://github.com/javan/electron-quick-start/tree/hidden-inset-mojave</a></li>
<li>Click the black bar at the top of the window. It should turn purple while the mouse is down.</li>
<li>Enter and exit fullscreen.</li>
<li>Click the top of the window and note that it no longer turns purple.</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ git clone https://github.com/javan/electron-quick-start.git -b hidden-inset-mojave
$ npm install
$ npm start"><pre class="notranslate"><code class="notranslate">$ git clone https://github.com/javan/electron-quick-start.git -b hidden-inset-mojave
$ npm install
$ npm start
</code></pre></div>
<p dir="auto"><strong>Screenshots</strong><br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/5355/51252742-93e50b80-196a-11e9-977d-13da6324bf1a.gif"><img src="https://user-images.githubusercontent.com/5355/51252742-93e50b80-196a-11e9-977d-13da6324bf1a.gif" alt="electron-fullscreen-clicks" data-animated-image="" style="max-width: 100%;"></a></p>
<p dir="auto"><strong>Additional Information</strong><br>
This issue is quite similar to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="358724506" data-permission-text="Title is private" data-url="https://github.com/electron/electron/issues/14529" data-hovercard-type="issue" data-hovercard-url="/electron/electron/issues/14529/hovercard" href="https://github.com/electron/electron/issues/14529">#14529</a>.</p>