<h3 dir="auto">Preflight Checklist</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the <a href="https://github.com/electron/electron/blob/main/CONTRIBUTING.md">Contributing Guidelines</a> for this project.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow the <a href="https://github.com/electron/electron/blob/main/CODE_OF_CONDUCT.md">Code of Conduct</a> that this project adheres to.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://www.github.com/electron/electron/issues">issue tracker</a> for a feature request that matches the one I want to file, without success.</li>
</ul>
<h3 dir="auto">Electron Version</h3>
<p dir="auto">15.0.0</p>
<h3 dir="auto">What operating system are you using?</h3>
<p dir="auto">Windows</p>
<h3 dir="auto">Operating System Version</h3>
<p dir="auto">Windows 10</p>
<h3 dir="auto">What arch are you using?</h3>
<p dir="auto">x64</p>
<h3 dir="auto">Last Known Working Electron version</h3>
<p dir="auto">13.1.7</p>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto"><code class="notranslate">-webkit-app-region: drag</code> move the window</p>
<h3 dir="auto">Actual Behavior</h3>
<p dir="auto"><code class="notranslate">-webkit-app-region: drag</code> is not moving the window</p>
<h3 dir="auto">Testcase Gist URL</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Additional Information</h3>
<p dir="auto">I created a BrowserWindow with this configuration</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{
        frame: false,
        width: 315,
        minWidth: 315,
        height: 485,
        minHeight: 485,
        resizable: false,
        maximizable: false,
        webPreferences:{
            nodeIntegration: true,
            preload: path.join(__dirname, &quot;preload.js&quot;)
        }
}"><pre class="notranslate"><span class="pl-kos">{</span>
        <span class="pl-c1">frame</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span>
        <span class="pl-c1">width</span>: <span class="pl-c1">315</span><span class="pl-kos">,</span>
        <span class="pl-c1">minWidth</span>: <span class="pl-c1">315</span><span class="pl-kos">,</span>
        <span class="pl-c1">height</span>: <span class="pl-c1">485</span><span class="pl-kos">,</span>
        <span class="pl-c1">minHeight</span>: <span class="pl-c1">485</span><span class="pl-kos">,</span>
        <span class="pl-c1">resizable</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span>
        <span class="pl-c1">maximizable</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span>
        <span class="pl-c1">webPreferences</span>:<span class="pl-kos">{</span>
            <span class="pl-c1">nodeIntegration</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
            <span class="pl-c1">preload</span>: <span class="pl-s1">path</span><span class="pl-kos">.</span><span class="pl-en">join</span><span class="pl-kos">(</span><span class="pl-s1">__dirname</span><span class="pl-kos">,</span> <span class="pl-s">"preload.js"</span><span class="pl-kos">)</span>
        <span class="pl-kos">}</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">In the window there was a div with this style: <code class="notranslate">-webkit-app-region: drag</code><br>
But he not moves this window</p>
<p dir="auto">After some tests I found out that the property <code class="notranslate"> resizable: false</code> was what caused the problem and the property<br>
<code class="notranslate">movable: true</code> does not fix the error</p>
<p dir="auto">Sorry for the poor English I'm not fluent :)</p>
<h3 dir="auto">Preflight Checklist</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the <a href="https://github.com/electron/electron/blob/master/CONTRIBUTING.md">Contributing Guidelines</a> for this project.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow the <a href="https://github.com/electron/electron/blob/master/CODE_OF_CONDUCT.md">Code of Conduct</a> that this project adheres to.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://www.github.com/electron/electron/issues">issue tracker</a> for a feature request that matches the one I want to file, without success.</li>
</ul>
<h3 dir="auto">Electron Version</h3>
<p dir="auto">14.0.0</p>
<h3 dir="auto">What operating system are you using?</h3>
<p dir="auto">Windows</p>
<h3 dir="auto">Operating System Version</h3>
<p dir="auto">Windows 10 Pro - 20H2 - 19042.1165 - Windows Feature Experience Pack 120.2212.3530.0</p>
<h3 dir="auto">What arch are you using?</h3>
<p dir="auto">x64</p>
<h3 dir="auto">Last Known Working Electron version</h3>
<p dir="auto">13.2.2</p>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto">When creating a new, frameless BrowserWindow setting <code class="notranslate">resizable: false</code> should not change the behaviour of custom app drag regions defined using <code class="notranslate">-webkit-app-region: drag;</code>.</p>
<h3 dir="auto">Actual Behavior</h3>
<p dir="auto">When creating a new, frameless BrowserWindow with the test scenario in the Gist (using Electron Fiddle) the region I've defined as draggable using <code class="notranslate">-webkit-app-region: drag;</code> does not allow me to drag the BrowserWindow <em>if</em> <code class="notranslate">resizable</code> is set to <code class="notranslate">false</code>.</p>
<p dir="auto">You can see the difference by commenting/uncommenting the <code class="notranslate">resizable: false</code> line in the Electron Fiddle Gist example.</p>
<h3 dir="auto">Testcase Gist URL</h3>
<p dir="auto"><a href="https://gist.github.com/68a75365505163c4a19ab19c5ffd062a">https://gist.github.com/68a75365505163c4a19ab19c5ffd062a</a></p>
<h3 dir="auto">Additional Information</h3>
<p dir="auto">Just to note that I've also tried using <code class="notranslate">win.setResizable(false);</code> after the BrowserWindow has loaded and this then also disables the ability to drag the frameless BrowserWindow. Using the following code also then re-enables dragging after 5 seconds so the bug seems directly tied to the BrowserWindow not being resizable.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="setTimeout(() =&gt; {
  mainWindow.setResizable(true);
}, 5000);"><pre class="notranslate"><code class="notranslate">setTimeout(() =&gt; {
  mainWindow.setResizable(true);
}, 5000);
</code></pre></div>