<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">13.1.7</p>
<h3 dir="auto">What operating system are you using?</h3>
<p dir="auto">macOS</p>
<h3 dir="auto">Operating System Version</h3>
<p dir="auto">macOS 11.4</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">12.x</p>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto">desktopCapturer should be able to capture the output of the current window.</p>
<h3 dir="auto">Actual Behavior</h3>
<p dir="auto">The output is a blank stream of black frames.</p>
<h3 dir="auto">Testcase Gist URL</h3>
<p dir="auto"><a href="https://gist.github.com/e40b251b8ec56191ca9df9f568139304">https://gist.github.com/e40b251b8ec56191ca9df9f568139304</a></p>
<h3 dir="auto">Additional Information</h3>
<p dir="auto">This happens only for the current window. If you change the name of the target window to the name of any other window open on your machine, it shows the stream correctly.<br>
This works correctly is 11.x/12.x so it seems to be broken only in 13.x versions. My actual use case is not to show the output of the stream in the UI, but to record it and output a video file.<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="932050468" data-permission-text="Title is private" data-url="https://github.com/electron/electron/issues/29931" data-hovercard-type="issue" data-hovercard-url="/electron/electron/issues/29931/hovercard" href="https://github.com/electron/electron/issues/29931">#29931</a> is similar to this but a different issue since it is concerned with the source not being available and it affects both 12 and 13, but in this case, the source is always available but does not output anything.</p>
<ul dir="auto">
<li>Electron version: 2.0.0</li>
<li>Operating system: Fedora Linux 28 - 4.16.5-300.fc28.x86_64</li>
<li>Hardware: Intel HD Graphics 4400</li>
</ul>

<ul dir="auto">
<li>Last known working Electron version:<br>
1.8.6 (but flashes black at the beginning of the drag)<br>
Message on debug 1.8.6:<br>
<code class="notranslate">[6956:0503/113418.226485:ERROR:buffer_manager.cc(453)] [.DisplayCompositor-0x345f2e791700]GL ERROR :GL_INVALID_OPERATION : glBufferData: &lt;- error from previous GL command</code></li>
</ul>
<h3 dir="auto">Expected behavior</h3>
<p dir="auto">Drag and drop without crash the Electron, and the element not turn to black.</p>
<h3 dir="auto">Actual behavior</h3>
<p dir="auto">When drag an element it turn black, freeze Electron and the black element stay on screen even through other programs. No messages on debug, just freeze.</p>

<h3 dir="auto">How to reproduce</h3>
<p dir="auto">Start any project with a button with attribute draggable="true". Start dragging it, done.</p>
<p dir="auto"><em>ckerr edit: duplicate bug <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="334835300" data-permission-text="Title is private" data-url="https://github.com/electron/electron/issues/13384" data-hovercard-type="issue" data-hovercard-url="/electron/electron/issues/13384/hovercard" href="https://github.com/electron/electron/issues/13384">#13384</a> has a repro repo</em></p>